| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 696e4ed commit 3cb7288
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,6 +108,7 @@ def diff(self, other=Index, paths=None, create_patch=False, **kwargs): | |||
| 108 | 108 | args.append("-p") | |
| 109 | 109 | else: | |
| 110 | 110 | args.append("--raw") | |
| 111 | + args.append("-z") | ||
| 111 | 112 | ||
| 112 | 113 | # in any way, assure we don't see colored output, | |
| 113 | 114 | # fixes https://github.com/gitpython-developers/GitPython/issues/172 | |
@@ -483,7 +484,7 @@ def handle_diff_line(line): | |||
| 483 | 484 | if not line.startswith(":"): | |
| 484 | 485 | return | |
| 485 | 486 | ||
| 486 | - meta, _, path = line[1:].partition('\t') | ||
| 487 | + meta, _, path = line[1:].partition('\x00') | ||
| 487 | 488 | old_mode, new_mode, a_blob_id, b_blob_id, _change_type = meta.split(None, 4) | |
| 488 | 489 | # Change type can be R100 | |
| 489 | 490 | # R: status letter | |
| Back | FazBrowse Home | New Git URL |
0 commit comments