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 e4244eb commit ddb5432Copy full SHA for ddb5432
t/t3420-rebase-autostash.sh
@@ -167,4 +167,19 @@ testrebase "" .git/rebase-apply
167
testrebase " --merge" .git/rebase-merge
168
testrebase " --interactive" .git/rebase-merge
169
170
+test_expect_success 'abort rebase -i with --autostash' '
171
+ test_when_finished "git reset --hard" &&
172
+ echo uncommited-content >file0 &&
173
+ (
174
+ write_script abort-editor.sh <<-\EOF &&
175
+ echo >"$1"
176
+ EOF
177
+ test_set_editor "$(pwd)/abort-editor.sh" &&
178
+ test_must_fail git rebase -i --autostash HEAD^ &&
179
+ rm -f abort-editor.sh
180
+ ) &&
181
+ echo uncommited-content >expected &&
182
+ test_cmp expected file0
183
+'
184
+
185
test_done
0 commit comments