We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf57c9 commit 7cd5f08Copy full SHA for 7cd5f08
.husky/commit-msg
@@ -44,7 +44,7 @@ function ask () {
44
}
45
46
while ! npm run commit-msg -- "$1" ; do
47
- if ask 'There was an error. Do you wish to amend your commit message?' Y ; then
+ if [ -t 1 ] && ask 'There was an error. Do you wish to amend your commit message?' Y ; then
48
${GIT_EDITOR:-$EDITOR} "$1" < /dev/tty
49
else
50
exit 1
0 commit comments