зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
d9635e9c53
Коммит
ec4e69c06a
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче