Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7ed51b

Browse filesBrowse files
committed
[#7021] Fixed error serializing programmatically created commits
1 parent 8005591 commit f7ed51b
Copy full SHA for f7ed51b

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/objects/commit.py‎

Copy file name to clipboardExpand all lines: git/objects/commit.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, repo, binsha, tree=None, author=None, authored_date=None, aut
121121
self.parents = parents
122122
if encoding is not None:
123123
self.encoding = encoding
124-
if gpgsig is not None:
124+
if binsha == '\x00'*20 or gpgsig is not None:
125125
self.gpgsig = gpgsig
126126

127127
@classmethod

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.