Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: safer bookmark pushing
[gitweb.git]
/
contrib
/
remote-helpers
/
git-remote-hg
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index 2cd199662632b1e9873adc32a5c201f42c27fcd2..dcf6c989a724a964de93202daa9c2c2eb4d2933f 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-782,6
+782,8
@@
def do_export(parser):
continue
if peer:
+ rb = peer.listkeys('bookmarks')
+ old = rb.get(bmark, '')
if not peer.pushkey('bookmarks', bmark, old, new):
print "error %s" % ref
continue