index c674fa2d1b5c6ab47ebb5e828c427c6d47bb50fc..82f5ed3ddc8adb1b9b281c3912f4e67c53ef152f 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
## zip archive frontend for git-fast-import
##
## zip archive frontend for git-fast-import
##
common_prefix = name[:name.rfind('/') + 1]
else:
while not name.startswith(common_prefix):
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
mark[name] = ':' + str(next_mark)
next_mark += 1