diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-01-05 21:53:24 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-01-05 21:59:24 +0800 |
commit | 21e2c4589934d4801c15a482a37322cb704fc55b (patch) | |
tree | bfef3cc8f73cac668b51924976163c410c2aa378 /git/diff.py | |
parent | 90a6e1c8f793571730f1c77f2dce745813938b66 (diff) | |
download | gitpython-21e2c4589934d4801c15a482a37322cb704fc55b.tar.gz |
try fixing up test fixtures and implementationmore-robust-git-diff
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/diff.py b/git/diff.py index 17ef15af..cd7cc23c 100644 --- a/git/diff.py +++ b/git/diff.py @@ -511,11 +511,11 @@ class Diff(object): new_file = True elif change_type == 'C': copied_file = True - a_path, b_path = path.split('\t', 1) + a_path, b_path = path.split('\x00', 1) a_path = a_path.encode(defenc) b_path = b_path.encode(defenc) elif change_type == 'R': - a_path, b_path = path.split('\t', 1) + a_path, b_path = path.split('\x00', 1) a_path = a_path.encode(defenc) b_path = b_path.encode(defenc) rename_from, rename_to = a_path, b_path |