Commit 2b866b92 authored by Julien Muchembled's avatar Julien Muchembled

ERP5VCS: comment about a known bug when parsing git-diff output

parent a283c9ed
...@@ -217,6 +217,7 @@ class Git(WorkingCopy): ...@@ -217,6 +217,7 @@ class Git(WorkingCopy):
template = 'Index: %%s\n%s%%s\n' % ('=' * 67) template = 'Index: %%s\n%s%%s\n' % ('=' * 67)
for diff in out: for diff in out:
path = diff[:diff.index(' ')] path = diff[:diff.index(' ')]
# XXX: the following line fails if only the file mode changes
diff_dict[path] = template % (path, diff[diff.index('\n---'):]) diff_dict[path] = template % (path, diff[diff.index('\n---'):])
return stat_dict, diff_dict return stat_dict, diff_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment