File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -248,14 +248,12 @@ test_expect_success 'prompt - inside bare repository' '
248
248
249
249
test_expect_success ' prompt - interactive rebase' '
250
250
printf " (b1|REBASE-i 2/3)" >expected
251
- echo "#!$SHELL_PATH" >fake_editor.sh &&
252
- cat >>fake_editor.sh <<\EOF &&
253
- echo "exec echo" >"$1"
254
- echo "edit $(git log -1 --format="%h")" >>"$1"
255
- echo "exec echo" >>"$1"
256
- EOF
251
+ write_script fake_editor.sh <<-\EOF &&
252
+ echo "exec echo" >"$1"
253
+ echo "edit $(git log -1 --format="%h")" >>"$1"
254
+ echo "exec echo" >>"$1"
255
+ EOF
257
256
test_when_finished "rm -f fake_editor.sh" &&
258
- chmod a+x fake_editor.sh &&
259
257
test_set_editor "$TRASH_DIRECTORY/fake_editor.sh" &&
260
258
git checkout b1 &&
261
259
test_when_finished "git checkout master" &&
You can’t perform that action at this time.
0 commit comments