summaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorSean <seanlkml@sympatico.ca>2006-05-13 23:09:32 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-14 16:27:03 -0700
commitec4e69c06af3ecc38b9660b924e460689653487f (patch)
tree3381467f17fd3a579f60c67892b2597ab7b2d508 /git-commit.sh
parentd9635e9c539465792b1920437b52fa8792a71650 (diff)
downloadgit-ec4e69c06af3ecc38b9660b924e460689653487f.tar.gz
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-xgit-commit.sh2
1 files changed, 2 insertions, 0 deletions
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