@matheusbsbs / matheus-bagliano / commits / ec4e69c06a
Fork 0

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>

Sean committed May 13, 2006 at 23:09 UTC ec4e69c06af3ecc38b9660b924e460689653487f
1 file changed +2
git-commit.sh
+2
@@ -640,6 +640,8 @@ case "$no_edit" in
640 exit 1
641 ;;
642 esac
643 + git-var GIT_AUTHOR_IDENT > /dev/null || die
644 + git-var GIT_COMMITTER_IDENT > /dev/null || die
645 ${VISUAL:-${EDITOR:-vi}} "$GIT_DIR/COMMIT_EDITMSG"
646 ;;
647 esac