diff options
author | Sean <seanlkml@sympatico.ca> | 2006-05-13 23:09:32 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-14 16:27:03 -0700 |
commit | ec4e69c06af3ecc38b9660b924e460689653487f (patch) | |
tree | 3381467f17fd3a579f60c67892b2597ab7b2d508 /git-commit.sh | |
parent | d9635e9c539465792b1920437b52fa8792a71650 (diff) | |
download | git-ec4e69c06af3ecc38b9660b924e460689653487f.tar.gz git-ec4e69c06af3ecc38b9660b924e460689653487f.tar.xz |
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 <seanlkml@sympatico.ca>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-x | git-commit.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |