aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-15 00:49:25 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-15 00:49:25 -0700
commitc8df633b4edfe6915ea3a8651a08d93654c62f24 (patch)
tree5153832c60cc8c4365f6374b1a99b9a6e883aa41
parent3f22deb7f58dff426a0853de62cc553ec97d6bf8 (diff)
parentec4e69c06af3ecc38b9660b924e460689653487f (diff)
downloadgit-c8df633b4edfe6915ea3a8651a08d93654c62f24.tar.gz
git-c8df633b4edfe6915ea3a8651a08d93654c62f24.tar.xz
Merge branch 'fix' into maint
* fix: Ensure author & committer before asking for commit message.
-rwxr-xr-xgit-commit.sh2
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