This commit is contained in:
Josh Matthews 2019-03-20 10:11:55 -04:00
parent cc7e21000a
commit 17e04fb255

View file

@ -96,8 +96,8 @@ class Git(object):
cmd = ["ls-tree", "-r", "-z", "HEAD"] cmd = ["ls-tree", "-r", "-z", "HEAD"]
local_changes = self._local_changes() local_changes = self._local_changes()
for result in self.git(*cmd).split("\0")[:-1]: for result in self.git(*cmd).split("\0")[:-1]:
rel_path = result.rsplit("\t", 1)[-1] data, rel_path = result.rsplit("\t", 1)
hash = result.split(" ", 3)[2] hash = data.split(" ", 3)[2]
if rel_path in local_changes: if rel_path in local_changes:
contents = self._show_file(rel_path) contents = self._show_file(rel_path)
else: else: