git.samba.org
/
jelmer
/
dulwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f5fa1
)
Avoid unnecessary re-opening of index files during pack close.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 24 Sep 2013 22:34:03 +0000
(23:34 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 24 Sep 2013 22:34:03 +0000
(23:34 +0100)
dulwich/pack.py
patch
|
blob
|
history
diff --git
a/dulwich/pack.py
b/dulwich/pack.py
index 62f1cb2688099923c457976ce72cc6d6b8ae99ba..1350b1d1870a23634fc9f865c98c4a00a3b8c412 100644
(file)
--- a/
dulwich/pack.py
+++ b/
dulwich/pack.py
@@
-1802,7
+1802,8
@@
class Pack(object):
def close(self):
if self._data is not None:
self._data.close()
- self.index.close()
+ if self._idx is not None:
+ self._idx.close()
def __eq__(self, other):
return type(self) == type(other) and self.index == other.index