git_log = subprocess.Popen(['git', 'log', '-m', '--first-parent',
'--name-status', '--no-color',
- '--format=%s%%n%%%st' % (separator, date_format)],
+ '--pretty=tformat:%s%%n%%%st' % (
+ separator, date_format)],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
universal_newlines=True)
changed_files = set()
deleted_files.add(filename)
if filename not in deleted_files and filename not in changed_files:
changed_files.add(filename)
- if os.path.exists(filename):
+ if os.path.exists(filename) and not os.path.islink(filename):
os.utime(filename, (time, time))
else:
raise ValueError("stage: %d, line: %s" % (stage, line))