Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36fd4fa

Browse files
authored
with committer time
1 parent 889aeef commit 36fd4fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git/objects/commit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def _iter_from_process_or_stream(cls, repo, proc_or_stream):
280280

281281
@classmethod
282282
def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False, author=None, committer=None,
283-
author_date=None, commit_date=None, author_timezone=None):
283+
author_date=None, commit_date=None, author_timezone=None, committer_timezone=None):
284284
"""Commit the given tree, creating a commit object.
285285
286286
:param repo: Repo object the commit should be part of
@@ -354,7 +354,7 @@ def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False,
354354

355355
committer_date_str = env.get(cls.env_committer_date, '')
356356
if commit_date:
357-
committer_time, committer_offset = commit_date, author_timezone
357+
committer_time, committer_offset = commit_date, committer_timezone
358358
elif committer_date_str:
359359
committer_time, committer_offset = parse_date(committer_date_str)
360360
else:
@@ -530,4 +530,4 @@ def _deserialize(self, stream):
530530

531531
return self
532532

533-
#} END serializable implementation
533+
#} END serializable implementation

0 commit comments

Comments
 (0)