summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
authorCory Johns <cjohns@slashdotmedia.com>2013-10-09 19:02:56 +0000
committerCory Johns <cjohns@slashdotmedia.com>2013-10-09 20:49:44 +0000
commitd3a728277877924e889e9fef42501127f48a4e77 (patch)
tree930599537d72c28517b045924433f44ef7eb8da6 /git/objects/commit.py
parent5869c5c1a51d448a411ae0d51d888793c35db9c0 (diff)
downloadgitpython-d3a728277877924e889e9fef42501127f48a4e77.tar.gz
[#5330] Ensure wait() is called on git processes
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 8e74f8bf..0565b2c0 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -8,6 +8,7 @@ from git.util import (
Actor,
Iterable,
Stats,
+ finalize_process
)
from git.diff import Diffable
from tree import Tree
@@ -251,6 +252,8 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
assert len(hexsha) == 40, "Invalid line: %s" % hexsha
yield Commit(repo, hex_to_bin(hexsha))
# END for each line in stream
+ if has_attr(proc_or_stream, 'wait'):
+ finalize_process(proc_or_stream)
@classmethod