diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 20:21:31 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 20:21:31 +0200 |
commit | dfe3ba3e5c08ee88afe89cc331081bbfbf5520e0 (patch) | |
tree | 932f8323fdf26eedae9d1f511e618ddf6a925ef3 | |
parent | e583a9e22a7a0535f2c591579873e31c21bccae0 (diff) | |
download | gitpython-dfe3ba3e5c08ee88afe89cc331081bbfbf5520e0.tar.gz |
Fixed index test which didn't work anymore due to changes in the way the git command communicates
-rw-r--r-- | git/index/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git/index/base.py b/git/index/base.py index 88410e20..354319bd 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -959,12 +959,16 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): if not line.startswith("git checkout-index: ") and not line.startswith("git-checkout-index: "): is_a_dir = " is a directory" unlink_issue = "unable to unlink old '" + already_exists_issue = ' already exists, no checkout' # created by entry.c:checkout_entry(...) if line.endswith(is_a_dir): failed_files.append(line[:-len(is_a_dir)]) failed_reasons.append(is_a_dir) elif line.startswith(unlink_issue): failed_files.append(line[len(unlink_issue):line.rfind("'")]) failed_reasons.append(unlink_issue) + elif line.endswith(already_exists_issue): + failed_files.append(line[:-len(already_exists_issue)]) + failed_reasons.append(already_exists_issue) else: unknown_lines.append(line) continue |