Skip to content

Commit

Permalink
Fix filename parsing for directory checkins
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
  • Loading branch information
jan-kiszka authored and charleso committed Apr 29, 2009
1 parent 06fa1b1 commit 5962f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebase.py
Expand Up @@ -213,7 +213,7 @@ def add(self, files):
dir = cc_file(self.file, self.version)
diff = cc_exec(['diff', '-diff_format', '-pred', dir], errors=False)
def getFile(line):
return join(self.file, line[2:line.find(' --') - 1])
return join(self.file, line[2:max(line.find(' '), line.find(os.sep + ' '))])
for line in diff.split('\n'):
sym = line.find(' -> ')
if sym >= 0:
Expand Down

0 comments on commit 5962f4d

Please sign in to comment.