summaryrefslogtreecommitdiff
path: root/builtin-fetch-pack.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 02:09:12 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-23 21:02:26 -0700
commit78509d2197ff18d1de02c27a5406328f75b95306 (patch)
tree73a9f9db32c248d31157b3c03e5cf85db41d929d /builtin-fetch-pack.c
parentf198e218494800787909af0f3985350c3ecc27b2 (diff)
downloadgit-78509d2197ff18d1de02c27a5406328f75b95306.tar.gz
builtin-fetch-pack: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fetch-pack.c')
-rw-r--r--builtin-fetch-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c
index d571253a56..5d134be47c 100644
--- a/builtin-fetch-pack.c
+++ b/builtin-fetch-pack.c
@@ -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.");