From: Junio C Hamano Date: Sun, 13 Aug 2006 08:16:06 GMT Subject: Re: [PATCH] git-commit: no silent exit on duplicate Signed-off-by lines Message-ID: <7vejvlm4op.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060813080328.14584.qmail@web31805.mail.mud.yahoo.com> Luben Tuikov writes: > @@ -690,7 +690,7 @@ case "$verify" in > t) > if test -x "$GIT_DIR"/hooks/commit-msg > then > - "$GIT_DIR"/hooks/commit-msg "$GIT_DIR"/COMMIT_EDITMSG || exit > + "$GIT_DIR"/hooks/commit-msg "$GIT_DIR"/COMMIT_EDITMSG || die "Duplicate Signed-off-by lines -- nothing commited" > fi > esac Please emit the complaint from the sample hook/commit-msg script, not from git-commit.