From f73385a5f62a211c19d90d3a7c06dcd693b3652d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 23 Nov 2009 23:21:24 +0100 Subject: diff: fixed issue in diff implementation which would just drop null-shas that always occour when dealing with working tree diffs ( for ovious reasons ). Also the implementation would previously leave empty blobs where no file actually existed --- lib/git/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/index.py') diff --git a/lib/git/index.py b/lib/git/index.py index f0da4b64..04ba9130 100644 --- a/lib/git/index.py +++ b/lib/git/index.py @@ -485,7 +485,7 @@ class IndexFile(LazyMixin, diff.Diffable): try: repo.git.read_tree(*arg_list, **kwargs) index = cls(repo, tmp_index) - index.entries # force it to read the file + index.entries # force it to read the file as we will delete the temp-file finally: if os.path.exists(tmp_index): os.remove(tmp_index) -- cgit v1.2.1