summaryrefslogtreecommitdiff
path: root/t/t4252
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2012-10-16 12:22:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-10-16 10:08:23 -0700
commit547d058fb6fefad147675a6d3fdb9439c57916a1 (patch)
tree65dc80d8a08aacc7e6e61ac394894bac02fcbdb7 /t/t4252
parentGit 1.7.11 (diff)
downloadtgif-547d058fb6fefad147675a6d3fdb9439c57916a1.tar.xz
refs: lock symref that is to be deleted, not its target
When delete_ref is called on a symref then it locks its target and then either deletes the target or the symref, depending on whether the flag REF_NODEREF was set in the parameter delopt. Instead, simply pass the flag to lock_ref_sha1_basic, which will then either lock the target or the symref, and delete the locked ref. This reimplements part of eca35a25 (Fix git branch -m for symrefs.). Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4252')
0 files changed, 0 insertions, 0 deletions