[PATCH 1/3] fix an error message in git-push so it goes to stderr

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Larry D'Anna
Date: Friday, February 5, 2010 - 12:34 pm

Having it go to standard output interferes with git-push --porcelain.

Signed-off-by: Larry D'Anna <larry@elder-gods.org>
---
 builtin-push.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/builtin-push.c b/builtin-push.c
index 5633f0a..0a27072 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;
-- 
1.7.0.rc1.33.g07cf0f.dirty

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] fix an error message in git-push so it goes to ..., Larry D'Anna, (Fri Feb 5, 12:34 pm)
[PATCH v2 0/3], Larry D'Anna, (Fri Feb 5, 1:49 pm)
Re: t5401-update-hooks test failure, Shawn O. Pearce, (Tue Feb 9, 10:51 am)
Re: t5401-update-hooks test failure, Nicolas Pitre, (Tue Feb 9, 12:20 pm)
Re: t5401-update-hooks test failure, Shawn O. Pearce, (Tue Feb 9, 12:26 pm)
Re: t5401-update-hooks test failure, Junio C Hamano, (Tue Feb 9, 3:44 pm)
Re: t5401-update-hooks test failure, Junio C Hamano, (Tue Feb 9, 4:16 pm)
Re: t5401-update-hooks test failure, Shawn O. Pearce, (Tue Feb 9, 6:29 pm)