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 <larry@elder-gods.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Larry D'Anna committed
Feb 26, 2010 at 23:52 UTC
011fe9814f7be7df7212229fa4f8393e03829cb7
1 file changed
+3
-3
builtin-push.c
+3
-3
@@ -124,9 +124,9 @@ static int push_with_options(struct transport *transport, int flags)
124
return 0;
125
126
if (nonfastforward && advice_push_nonfastforward) {
127
- printf("To prevent you from losing history, non-fast-forward updates were rejected\n"
128
- "Merge the remote changes before pushing again. See the 'Note about\n"
129
- "fast-forwards' section of 'git push --help' for details.\n");
127
+ fprintf(stderr, "To prevent you from losing history, non-fast-forward updates were rejected\n"
128
+ "Merge the remote changes before pushing again. See the 'Note about\n"
129
+ "fast-forwards' section of 'git push --help' for details.\n");
130
}
131
132
return 1;