We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8fee3a + 8e4f767 commit 510a309Copy full SHA for 510a309
contrib/fast-import/import-zips.py
@@ -44,7 +44,8 @@ def printlines(list):
44
common_prefix = name[:name.rfind('/') + 1]
45
else:
46
while not name.startswith(common_prefix):
47
- common_prefix = name[:name.rfind('/') + 1]
+ last_slash = common_prefix[:-1].rfind('/') + 1
48
+ common_prefix = common_prefix[:last_slash]
49
50
mark[name] = ':' + str(next_mark)
51
next_mark += 1
0 commit comments