Merge branch 'cn/fetch-prune-overlapping-destination'
[gitweb.git] / contrib / remote-helpers / git-remote-hg
index eb89ef67798e70fd77eff341e3dda5385d3cde48..36b526106ba7b3c61b70549770c1ec82f45e1baf 100755 (executable)
@@ -643,7 +643,10 @@ def do_list(parser):
             print "? refs/heads/branches/%s" % gitref(branch)
 
     for bmark in bmarks:
-        print "? refs/heads/%s" % gitref(bmark)
+        if  bmarks[bmark].hex() == '0000000000000000000000000000000000000000':
+            warn("Ignoring invalid bookmark '%s'", bmark)
+        else:
+            print "? refs/heads/%s" % gitref(bmark)
 
     for tag, node in repo.tagslist():
         if tag == 'tip':