提交 78509d21 编写于 作者: M Miklos Vajna 提交者: Junio C Hamano

builtin-fetch-pack: use warning() instead of fprintf(stderr, "warning: ")

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 f198e218
......@@ -605,7 +605,7 @@ static struct ref *do_fetch_pack(int fd[2],
/* When cloning, it is not unusual to have
* no common commit.
*/
fprintf(stderr, "warning: no common commits\n");
warning("no common commits");
if (get_pack(fd, pack_lockfile))
die("git fetch-pack: fetch failed.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册