git: convert tz offset to int (issue6359)
authorAugie Fackler <raf@durin42.com>
Mon, 07 Sep 2020 15:31:34 -0400
changeset 45413 8ddbb75bad09
parent 45411 a42999f611ff
child 45414 66a10bd1b8db
git: convert tz offset to int (issue6359) Differential Revision: https://phab.mercurial-scm.org/D8991
hgext/git/gitlog.py
--- a/hgext/git/gitlog.py	Mon Sep 07 15:20:31 2020 -0400
+++ b/hgext/git/gitlog.py	Mon Sep 07 15:31:34 2020 -0400
@@ -386,7 +386,7 @@
             encoding.unifromlocal(stringutil.person(user)),
             encoding.unifromlocal(stringutil.email(user)),
             timestamp,
-            -(tz // 60),
+            -int(tz // 60),
         )
         oid = self.gitrepo.create_commit(
             None, sig, sig, desc, gitutil.togitnode(manifest), parents