git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Corrected return values in post-receive-email.prep_for_email
@ 2010-12-07 16:32 Alan Raison
  2010-12-07 16:50 ` Thiago Farina
  2010-12-07 19:34 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Raison @ 2010-12-07 16:32 UTC (permalink / raw)
  To: git; +Cc: alan

---
 contrib/hooks/post-receive-email |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/hooks/post-receive-email
b/contrib/hooks/post-receive-email
index 85724bf..020536d 100755
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -150,7 +150,7 @@ prep_for_email()
 			# Anything else (is there anything else?)
 			echo >&2 "*** Unknown type of update to $refname
($rev_type)"
 			echo >&2 "***  - no email generated"
-			return 0
+			return 1
 			;;
 	esac
 
@@ -166,10 +166,10 @@ prep_for_email()
 		esac
 		echo >&2 "*** $config_name is not set so no email will be
sent"
 		echo >&2 "*** for $refname update $oldrev->$newrev"
-		return 0
+		return 1
 	fi
 
-	return 1
+	return 0
 }
 
 #
-- 
1.7.3.1.msysgit.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-09 17:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 16:32 [PATCH] Corrected return values in post-receive-email.prep_for_email Alan Raison
2010-12-07 16:50 ` Thiago Farina
2010-12-07 17:10   ` Alan Raison
2010-12-07 19:34 ` Junio C Hamano
2010-12-07 19:44   ` Kevin P. Fleming
2010-12-09 13:24     ` [PATCH] Corrected return values in prep_for_email; Alan Raison
2010-12-09 15:19       ` Kevin P. Fleming
2010-12-09 16:03     ` Alan Raison
2010-12-09 17:38       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).