diff options
author | Cory Johns <johnsca@gmail.com> | 2014-03-04 18:33:13 +0000 |
---|---|---|
committer | Cory Johns <johnsca@gmail.com> | 2014-03-04 18:33:13 +0000 |
commit | f7ed51ba4c8416888f5744ddb84726316c461051 (patch) | |
tree | d1e28fade8e20781b36e296d4d4a3e654a9851b0 /git/objects/commit.py | |
parent | 8005591231c8ae329f0ff320385b190d2ea81df0 (diff) | |
download | gitpython-f7ed51ba4c8416888f5744ddb84726316c461051.tar.gz |
[#7021] Fixed error serializing programmatically created commits
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r-- | git/objects/commit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py index 035ce004..edbdf038 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -121,7 +121,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): self.parents = parents if encoding is not None: self.encoding = encoding - if gpgsig is not None: + if binsha == '\x00'*20 or gpgsig is not None: self.gpgsig = gpgsig @classmethod |