builtin-fetch-pack: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Miklos Vajna committed
Mar 24, 2009 at 02:09 UTC
78509d2197ff18d1de02c27a5406328f75b95306
1 file changed
+1
-1
builtin-fetch-pack.c
+1
-1
@@ -605,7 +605,7 @@ static struct ref *do_fetch_pack(int fd[2],
605
/* When cloning, it is not unusual to have
606
* no common commit.
607
*/
608
- fprintf(stderr, "warning: no common commits\n");
608
+ warning("no common commits");
609
610
if (get_pack(fd, pack_lockfile))
611
die("git fetch-pack: fetch failed.");