summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-09-11 10:33:33 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-11 10:33:33 -0700
commit88e7dff93d7010bb2974f8e1599a4e53c73e18f3 (patch)
treee9054e4b6af2e649c628bbf16af8b711a4484729 /refs.c
parentMerge branch 'nd/large-blobs' (diff)
parentpack-refs: prune top-level refs like "refs/foo" (diff)
downloadtgif-88e7dff93d7010bb2974f8e1599a4e53c73e18f3.tar.xz
Merge branch 'jk/prune-top-level-refs-after-packing'
After "pack-refs --prune" packed refs at the top-level, it failed to prune them. * jk/prune-top-level-refs-after-packing: pack-refs: prune top-level refs like "refs/foo"
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 808e261c23..2ce5d69090 100644
--- a/refs.c
+++ b/refs.c
@@ -2389,7 +2389,7 @@ static void prune_ref(struct ref_to_prune *r)
struct ref_transaction *transaction;
struct strbuf err = STRBUF_INIT;
- if (check_refname_format(r->name + 5, 0))
+ if (check_refname_format(r->name, 0))
return;
transaction = ref_transaction_begin(&err);