File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,6 @@ static int do_fetch(struct transport *transport,
694
694
struct refspec * refs , int ref_count )
695
695
{
696
696
struct string_list existing_refs = STRING_LIST_INIT_DUP ;
697
- struct string_list_item * peer_item = NULL ;
698
697
struct ref * ref_map ;
699
698
struct ref * rm ;
700
699
int autotags = (transport -> remote -> fetch_tags == 1 );
@@ -724,8 +723,9 @@ static int do_fetch(struct transport *transport,
724
723
725
724
for (rm = ref_map ; rm ; rm = rm -> next ) {
726
725
if (rm -> peer_ref ) {
727
- peer_item = string_list_lookup (& existing_refs ,
728
- rm -> peer_ref -> name );
726
+ struct string_list_item * peer_item =
727
+ string_list_lookup (& existing_refs ,
728
+ rm -> peer_ref -> name );
729
729
if (peer_item )
730
730
hashcpy (rm -> peer_ref -> old_sha1 ,
731
731
peer_item -> util );
You can’t perform that action at this time.
0 commit comments