From ec4e69c06af3ecc38b9660b924e460689653487f Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 13 May 2006 23:09:32 -0400 Subject: [PATCH] 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 --- git-commit.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2