From ec4e69c06af3ecc38b9660b924e460689653487f Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 13 May 2006 23:09:32 -0400 Subject: 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(+) (limited to 'git-commit.sh') diff --git a/git-commit.sh b/git-commit.sh index 26cd7ca54d..6ef1a9dedc 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 -- cgit v1.2.3