Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix a crash in ls-remote when refspec expands into nothing
[gitweb.git]
/
remote.c
diff --git
a/remote.c
b/remote.c
index e2ca4d32bab79f2d3795fa8cbc6a70906c672f0e..b20e2be4332b3b4a17c50988f2acdcd80834a6f7 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-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;
}