Skip to content

Commit

Permalink
Ensure author & committer before asking for commit message.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sean authored and Junio C Hamano committed May 14, 2006
1 parent d9635e9 commit ec4e69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec4e69c

Please sign in to comment.