Merge branch 'fix' into maint
authorJunio C Hamano <junkio@cox.net>
Mon, 15 May 2006 07:49:25 +0000 (00:49 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 15 May 2006 07:49:25 +0000 (00:49 -0700)
* fix:
  Ensure author & committer before asking for commit message.

git-commit.sh

index 26cd7ca..6ef1a9d 100755 (executable)
@@ -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