Skip to content

Commit

Permalink
Merge branch 'maint-1.6.0' into maint-1.6.1
Browse files Browse the repository at this point in the history
* maint-1.6.0:
  import-zips: fix thinko
  • Loading branch information
Junio C Hamano committed Mar 30, 2009
2 parents 81db4ab + 63801da commit 8e4f767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/fast-import/import-zips.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def printlines(list):
common_prefix = name[:name.rfind('/') + 1]
else:
while not name.startswith(common_prefix):
common_prefix = name[:name.rfind('/') + 1]
last_slash = common_prefix[:-1].rfind('/') + 1
common_prefix = common_prefix[:last_slash]

mark[name] = ':' + str(next_mark)
next_mark += 1
Expand Down

0 comments on commit 8e4f767

Please sign in to comment.