From: Sean Date: Sun, 14 May 2006 03:09:32 +0000 (-0400) Subject: Ensure author & committer before asking for commit message. X-Git-Tag: v1.3.3~3^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec4e69c06af3ecc38b9660b924e460689653487f;p=git.git Ensure author & committer before asking for commit message. It's better to find out you need to fix your author and committer information before you enter a long commit message. Signed-off-by: Sean Estabrooks Signed-off-by: Junio C Hamano --- diff --git a/git-commit.sh b/git-commit.sh index 26cd7ca54..6ef1a9ded 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -640,6 +640,8 @@ case "$no_edit" in exit 1 ;; esac + git-var GIT_AUTHOR_IDENT > /dev/null || die + git-var GIT_COMMITTER_IDENT > /dev/null || die ${VISUAL:-${EDITOR:-vi}} "$GIT_DIR/COMMIT_EDITMSG" ;; esac