diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-23 23:21:24 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-23 23:21:24 +0100 |
commit | f73385a5f62a211c19d90d3a7c06dcd693b3652d (patch) | |
tree | 6a7578fadde536665e8fb1b0a8ddbcf8fdeffd74 /lib/git/index.py | |
parent | 202216e2cdb50d0e704682c5f732dfb7c221fbbc (diff) | |
download | gitpython-f73385a5f62a211c19d90d3a7c06dcd693b3652d.tar.gz |
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
Diffstat (limited to 'lib/git/index.py')
-rw-r--r-- | lib/git/index.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |