diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-06-22 16:02:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-22 13:17:08 -0700 |
commit | b4c4af832bc27afab472f67bdd58ecbf290dcb2f (patch) | |
tree | d3ad62485090ebbad960dc773ce85463e3a70e6a /builtin/remote.c | |
parent | fc1c21689d6d82551f6136a3116876005b4e00a4 (diff) | |
download | git-b4c4af832bc27afab472f67bdd58ecbf290dcb2f.tar.gz |
remove_branches(): remove temporary
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r-- | builtin/remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index f4a6ec9f13..53b8e13975 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -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); |