Re: [PATCH] git-commit: no silent exit on duplicate Signed-off-by lines
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 13, 2006, 08:16 UTC
- Message-ID
- <7vejvlm4op.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060813080328.14584.qmail@web31805.mail.mud.yahoo.com>
Luben Tuikov <ltuikov@yahoo.com> writes:
Show 8 quoted lines
> @@ -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.