Skip to content

Commit

Permalink
git-push: fix an advice message so it goes to stderr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Larry D'Anna authored and Junio C Hamano committed Feb 28, 2010
1 parent 8051a03 commit 011fe98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 011fe98

Please sign in to comment.