Skip to content

Commit

Permalink
builtin-fetch-pack: use warning() instead of fprintf(stderr, "warning…
Browse files Browse the repository at this point in the history
…: ")

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent f198e21 commit 78509d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 78509d2

Please sign in to comment.