remove_branches(): remove temporary

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Michael Haggerty 2015-06-22 16:02:53 +02:00 committed by Junio C Hamano
parent fc1c21689d
commit b4c4af832b
1 changed files with 1 additions and 2 deletions

View File

@ -756,8 +756,7 @@ static int remove_branches(struct string_list *branches)
strbuf_release(&err);

for (i = 0; i < branches->nr; i++) {
struct string_list_item *item = branches->items + i;
const char *refname = item->string;
const char *refname = branches->items[i].string;

if (delete_ref(refname, NULL, 0))
result |= error(_("Could not remove branch %s"), refname);