diff --git a/builtin-checkout.c b/builtin-checkout.c
index 66df0c072cba89e74af26a767a6fa9b65d5449ef..33d1fecb6251b4922666255817addeb9f672fa29 100644 (file)
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
if (!old.commit && !opts->force) {
if (!opts->quiet) {
- fprintf(stderr, "warning: You appear to be on a branch yet to be born.\n");
- fprintf(stderr, "warning: Forcing checkout of %s.\n", new->name);
+ warning("You appear to be on a branch yet to be born.");
+ warning("Forcing checkout of %s.", new->name);
}
opts->force = 1;
}