changeset 45521:e7587430ca23

git: also convert timezone to int (issue6359) Credit to moshez for testing this in the wild. Differential Revision: https://phab.mercurial-scm.org/D9062
author Augie Fackler <augie@google.com>
date Mon, 21 Sep 2020 10:23:25 -0400
parents 5eee6f4f3d0d
children 6877b0ee5f9d
files hgext/git/gitlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/git/gitlog.py	Fri Sep 18 16:26:37 2020 -0700
+++ b/hgext/git/gitlog.py	Mon Sep 21 10:23:25 2020 -0400
@@ -389,7 +389,7 @@
         sig = pygit2.Signature(
             encoding.unifromlocal(stringutil.person(user)),
             encoding.unifromlocal(stringutil.email(user)),
-            timestamp,
+            int(timestamp),
             -int(tz // 60),
         )
         oid = self.gitrepo.create_commit(