Mercurial > public > mercurial-scm > hg-stable
diff hgext/git/gitlog.py @ 45529: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 | 66a10bd1b8db |
children | 6aacc39501f7 |
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(