提交 8f70a765 编写于 作者: A Alex Riesen 提交者: Shawn O. Pearce

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

Originally-by: NVäinö Järvelä <v@pp.inet.fi>
Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
Signed-off-by: NLars Hjemli <hjemli@gmail.com>
Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 2467a4fa
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册