Really delete the private branch ref when deleting a branch

This commit is contained in:
Mark Nauwelaerts
2016-10-18 21:31:34 +02:00
parent 8ac5532eb1
commit 2ce962c5ab

View File

@@ -1383,7 +1383,7 @@ def delete_bookmark(parser, ref):
ok = peer.pushkey('bookmarks', bmark, old, '')
# delete private ref
if ok:
pbookmark = '%s/bookmarks/%s' % (prefix, bmark)
pbookmark = '%s/heads/%s' % (prefix, bmark)
subprocess.call(['git', 'update-ref', '-d', pbookmark])
return ok