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"
This commit is contained in:
Junio C Hamano
2014-09-11 10:33:33 -07:00
2 changed files with 8 additions and 1 deletions

2
refs.c
View File

@ -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);