Browse Source

Fix a crash in ls-remote when refspec expands into nothing

Originally-by: Väinö Järvelä <v@pp.inet.fi>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Alex Riesen 18 years ago committed by Shawn O. Pearce
parent
commit
8f70a7657a
  1. 3
      remote.c

3
remote.c

@ -909,7 +909,8 @@ int get_fetch_map(struct ref *remote_refs, @@ -909,7 +909,8 @@ int get_fetch_map(struct ref *remote_refs,
rm->peer_ref->name);
}

tail_link_ref(ref_map, tail);
if (ref_map)
tail_link_ref(ref_map, tail);

return 0;
}

Loading…
Cancel
Save