Skip to content

Commit

Permalink
restore-mtime: handle quote-encoded filenames in git output
Browse files Browse the repository at this point in the history
  • Loading branch information
MestreLion committed Nov 17, 2014
1 parent 5aa1df8 commit 8b26679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-restore-mtime
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def parselog(merge=False, filterlist=[]):
if not os.sep == '/':
file = file.replace('/',os.sep)

if file.startswith('"'):
file = file[1:-1].decode("string-escape")

if file in filelist:
logger.debug("%d\t%d\t%d\t%s\t%s",
loglines, commits, files,
Expand Down

0 comments on commit 8b26679

Please sign in to comment.