git: also convert timezone to int (issue6359)
authorAugie Fackler <augie@google.com>
Mon, 21 Sep 2020 10:23:25 -0400
changeset 45521 e7587430ca23
parent 45520 5eee6f4f3d0d
child 45524 6877b0ee5f9d
git: also convert timezone to int (issue6359) Credit to moshez for testing this in the wild. Differential Revision: https://phab.mercurial-scm.org/D9062
hgext/git/gitlog.py
--- 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(