diff options
author | Jonas Haag <jonas@lophus.org> | 2017-06-28 19:48:28 +0200 |
---|---|---|
committer | Jonas Haag <jonas@lophus.org> | 2017-06-28 19:48:33 +0200 |
commit | 09e533706cdd55566302dbebb6f464a22da52158 (patch) | |
tree | a97563467e69cf66d1c9bff6a32b4d0aa39f277c /klaus/repo.py | |
parent | b219afaa68db4d3ef51a23dd34b4e9bd403e37a4 (diff) |
Fix #194
Diffstat (limited to 'klaus/repo.py')
-rw-r--r-- | klaus/repo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klaus/repo.py b/klaus/repo.py index 7e93bc1..09fcedb 100644 --- a/klaus/repo.py +++ b/klaus/repo.py @@ -153,7 +153,7 @@ class FancyRepo(dulwich.repo.Repo): cmd = ['git', 'blame', '-ls', '--root', commit.id, '--', path] output = subprocess.check_output(cmd, cwd=os.path.abspath(self.path)) sha1_sums = [line[:40] for line in output.strip().split(b'\n')] - return [self[sha1] for sha1 in sha1_sums] + return [None if self[sha1] is None else decode_from_git(self[sha1].id) for sha1 in sha1_sums] def get_blob_or_tree(self, commit, path): """Return the Git tree or blob object for `path` at `commit`.""" |