diff hgext/git/gitlog.py @ 45413:8ddbb75bad09

git: convert tz offset to int (issue6359) Differential Revision: https://phab.mercurial-scm.org/D8991
author Augie Fackler <raf@durin42.com>
date Mon, 07 Sep 2020 15:31:34 -0400
parents 83e41b73d115
children 66a10bd1b8db
line wrap: on
line diff
--- 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