diff options
author | Larry D'Anna <larry@elder-gods.org> | 2010-02-26 23:52:13 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-28 10:39:27 -0800 |
commit | 011fe9814f7be7df7212229fa4f8393e03829cb7 (patch) | |
tree | 4e07ab7d6877fa5d9f6e119500b694bf7019ed1f | |
parent | 8051a030617cf7d083568cca223bdaa15052c33f (diff) | |
download | git-011fe9814f7be7df7212229fa4f8393e03829cb7.tar.gz |
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>
-rw-r--r-- | builtin-push.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin-push.c b/builtin-push.c index 5633f0ade4..0a27072698 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; |