We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3219bad commit b7ae141Copy full SHA for b7ae141
t/t7505-prepare-commit-msg-hook.sh
@@ -154,7 +154,7 @@ test_expect_success 'with failing hook' '
154
head=`git rev-parse HEAD` &&
155
echo "more" >> file &&
156
git add file &&
157
- ! GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit -c $head
+ test_must_fail env GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit -c $head
158
159
'
160
@@ -163,7 +163,7 @@ test_expect_success 'with failing hook (--no-verify)' '
163
164
165
166
- ! GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit --no-verify -c $head
+ test_must_fail env GIT_EDITOR="\"\$FAKE_EDITOR\"" git commit --no-verify -c $head
167
168
169
0 commit comments