summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 00:49:25 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-15 00:49:25 -0700
commitc8df633b4edfe6915ea3a8651a08d93654c62f24 (patch)
tree5153832c60cc8c4365f6374b1a99b9a6e883aa41
parentMerge branch 'fix' into maint (diff)
parentEnsure author & committer before asking for commit message. (diff)
downloadtgif-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 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