From: Larry D'Anna Date: Sat, 27 Feb 2010 04:52:13 +0000 (-0500) Subject: git-push: fix an advice message so it goes to stderr X-Git-Tag: v1.7.1-rc0~67^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=011fe9814f7be7df7212229fa4f8393e03829cb7;p=git.git git-push: fix an advice message so it goes to stderr These sort of messages typically go to the standard error. Signed-off-by: Larry D'Anna Signed-off-by: Junio C Hamano --- diff --git a/builtin-push.c b/builtin-push.c index 5633f0ade..0a2707269 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -124,9 +124,9 @@ static int push_with_options(struct transport *transport, int flags) return 0; if (nonfastforward && advice_push_nonfastforward) { - printf("To prevent you from losing history, non-fast-forward updates were rejected\n" - "Merge the remote changes before pushing again. See the 'Note about\n" - "fast-forwards' section of 'git push --help' for details.\n"); + fprintf(stderr, "To prevent you from losing history, non-fast-forward updates were rejected\n" + "Merge the remote changes before pushing again. See the 'Note about\n" + "fast-forwards' section of 'git push --help' for details.\n"); } return 1;