@@ -81,7 +81,7 @@ def __init__(self, repo, binsha, tree=None, author=None, authored_date=None, aut
81
81
:param tree: Tree
82
82
Tree object
83
83
:param author: Actor
84
- is the author Actor object
84
+ is the author string ( will be implicitly converted into an Actor object )
85
85
:param authored_date: int_seconds_since_epoch
86
86
is the authored DateTime - use time.gmtime() to convert it into a
87
87
different format
@@ -280,7 +280,7 @@ def _iter_from_process_or_stream(cls, repo, proc_or_stream):
280
280
281
281
@classmethod
282
282
def create_from_tree (cls , repo , tree , message , parent_commits = None , head = False , author = None , committer = None ,
283
- author_date = None , commit_date = None ):
283
+ author_date = None , commit_date = None , author_timezone = None ):
284
284
"""Commit the given tree, creating a commit object.
285
285
286
286
:param repo: Repo object the commit should be part of
@@ -345,7 +345,7 @@ def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False,
345
345
346
346
author_date_str = env .get (cls .env_author_date , '' )
347
347
if author_date :
348
- author_time , author_offset = parse_date ( author_date )
348
+ author_time , author_offset = author_date , author_timezone
349
349
elif author_date_str :
350
350
author_time , author_offset = parse_date (author_date_str )
351
351
else :
@@ -354,7 +354,7 @@ def create_from_tree(cls, repo, tree, message, parent_commits=None, head=False,
354
354
355
355
committer_date_str = env .get (cls .env_committer_date , '' )
356
356
if commit_date :
357
- committer_time , committer_offset = parse_date ( commit_date )
357
+ committer_time , committer_offset = commit_date , author_timezone
358
358
elif committer_date_str :
359
359
committer_time , committer_offset = parse_date (committer_date_str )
360
360
else :
@@ -530,4 +530,4 @@ def _deserialize(self, stream):
530
530
531
531
return self
532
532
533
- #} END serializable implementation
533
+ #} END serializable implementation
0 commit comments