Skip to content
  • Johan Herland's avatar
    Fix failure to delete a packed ref through a symref · b274a714
    Johan Herland authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When deleting a ref through a symref (e.g. using 'git update-ref -d HEAD'
    to delete refs/heads/master), we would remove the loose ref, but a packed
    version of the same ref would remain, the end result being that instead of
    deleting refs/heads/master we would appear to reset it to its state as of
    the last repack.
    
    This patch fixes the issue, by making sure we pass the correct ref name
    when invoking repack_without_ref() from within delete_ref().
    
    Signed-off-by: default avatarJohan Herland <johan@herland.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b274a714