Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: avoid buggy strftime()
author
jcb91
<joshuacookebarnes@gmail.com>
Sat, 7 Dec 2013 13:09:40 +0000
(07:09 -0600)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 Dec 2013 21:18:43 +0000
(13:18 -0800)
error on pull: fatal: Invalid raw date "" in ident: remote-hg <>
Neither %s nor %z are officially supported by python, they may work on
some (most?) platforms, but not all.
removed strftime use of %s and %z, which are not officially supported by python, with standard formats
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
077f434
)
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index 30402d55323488f7c2bc6599bbc4a471f2120b33..3cd964dd2d8200bbc1c1f4086bae9bf085d8e434 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-537,7
+537,7
@@
def export_ref(repo, name, kind, head):
print "commit %s" % ref
print "mark :%d" % (note_mark)
- print "committer remote-hg <> %
s" % (ptime.strftime('%s %z'
))
+ print "committer remote-hg <> %
d %s" % (ptime.time(), gittz(ptime.timezone
))
desc = "Notes for %s\n" % (name)
print "data %d" % (len(desc))
print desc