We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31faeb2 commit 6f64a16Copy full SHA for 6f64a16
1 file changed
builtin/fetch.c
@@ -694,7 +694,6 @@ static int do_fetch(struct transport *transport,
694
struct refspec *refs, int ref_count)
695
{
696
struct string_list existing_refs = STRING_LIST_INIT_DUP;
697
- struct string_list_item *peer_item = NULL;
698
struct ref *ref_map;
699
struct ref *rm;
700
int autotags = (transport->remote->fetch_tags == 1);
@@ -724,8 +723,9 @@ static int do_fetch(struct transport *transport,
724
723
725
for (rm = ref_map; rm; rm = rm->next) {
726
if (rm->peer_ref) {
727
- peer_item = string_list_lookup(&existing_refs,
728
- rm->peer_ref->name);
+ struct string_list_item *peer_item =
+ string_list_lookup(&existing_refs,
+ rm->peer_ref->name);
729
if (peer_item)
730
hashcpy(rm->peer_ref->old_sha1,
731
peer_item->util);
0 commit comments