diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-22 09:52:52 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-22 09:52:52 +0200 |
commit | d2d9197cfe5d3b43cb8aee182b2e65c73ef9ab7b (patch) | |
tree | 41e99a3b5a73f8ea1ef48abc8046b6f28b8aca3b /lib/git/index/fun.py | |
parent | 69dd8750be1fbf55010a738dc1ced4655e727f23 (diff) | |
download | gitpython-d2d9197cfe5d3b43cb8aee182b2e65c73ef9ab7b.tar.gz |
Tree-Writing now works after fixing an off-by-one error
Diffstat (limited to 'lib/git/index/fun.py')
-rw-r--r-- | lib/git/index/fun.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/index/fun.py b/lib/git/index/fun.py index 557941d5..9f877a66 100644 --- a/lib/git/index/fun.py +++ b/lib/git/index/fun.py @@ -168,11 +168,11 @@ def write_tree_from_cache(entries, odb, sl, si=0): xi = ci while xi < end: oentry = entries[xi] - xi += 1 - orbound = oentry.path.find('/') + orbound = oentry.path.find('/', si) if orbound == -1 or oentry.path[si:orbound] != base: break # END abort on base mismatch + xi += 1 # END find common base # enter recursion |