File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -149,18 +149,21 @@ test_expect_success 'rebase -i with the exec command checks tree cleanness' '
149
149
150
150
test_expect_success ' rebase -x with empty command fails' '
151
151
test_when_finished "git rebase --abort ||:" &&
152
- test_must_fail git rebase -x "" @ 2>actual &&
152
+ test_must_fail env GIT_TEST_REBASE_USE_BUILTIN=true \
153
+ git rebase -x "" @ 2>actual &&
153
154
test_write_lines "error: empty exec command" >expected &&
154
155
test_i18ncmp expected actual &&
155
- test_must_fail git rebase -x " " @ 2>actual &&
156
+ test_must_fail env GIT_TEST_REBASE_USE_BUILTIN=true \
157
+ git rebase -x " " @ 2>actual &&
156
158
test_i18ncmp expected actual
157
159
'
158
160
159
161
LF='
160
162
'
161
163
test_expect_success ' rebase -x with newline in command fails' '
162
164
test_when_finished "git rebase --abort ||:" &&
163
- test_must_fail git rebase -x "a${LF}b" @ 2>actual &&
165
+ test_must_fail env GIT_TEST_REBASE_USE_BUILTIN=true \
166
+ git rebase -x "a${LF}b" @ 2>actual &&
164
167
test_write_lines "error: exec commands cannot contain newlines" \
165
168
>expected &&
166
169
test_i18ncmp expected actual
You can’t perform that action at this time.
0 commit comments