aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-11-27 13:28:45 -0800
committerJunio C Hamano <gitster@pobox.com>2012-11-27 13:28:45 -0800
commited20513c8de70e8bd7f18d2fb5beb1a81f49cdf8 (patch)
treeeba3e85b41ebcef42d39fccd00943a7a77eb1ff4 /refs.c
parenta7c940edce6554cb57468a8a9936277b709cc7fc (diff)
parentb274a7146c44624bc30bbd54124312d4d3e6a28d (diff)
downloadgit-ed20513c8de70e8bd7f18d2fb5beb1a81f49cdf8.tar.gz
git-ed20513c8de70e8bd7f18d2fb5beb1a81f49cdf8.tar.xz
Merge branch 'jh/update-ref-d-through-symref' into maint
* jh/update-ref-d-through-symref: Fix failure to delete a packed ref through a symref t1400-update-ref: Add test verifying bug with symrefs in delete_ref()
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 9d1685bcb..520e50f3b 100644
--- a/refs.c
+++ b/refs.c
@@ -1770,7 +1770,7 @@ int delete_ref(const char *refname, const unsigned char *sha1, int delopt)
* packed one. Also, if it was not loose we need to repack
* without it.
*/
- ret |= repack_without_ref(refname);
+ ret |= repack_without_ref(lock->ref_name);
unlink_or_warn(git_path("logs/%s", lock->ref_name));
invalidate_ref_cache(NULL);