@@ -103,7 +103,8 @@ test_expect_success '--quit cleans up sequencer state' '
103103 pristine_detach initial &&
104104 test_expect_code 1 git cherry-pick base..picked &&
105105 git cherry-pick --quit &&
106- test_path_is_missing .git/sequencer
106+ test_path_is_missing .git/sequencer &&
107+ test_path_is_missing .git/CHERRY_PICK_HEAD
107108'
108109
109110test_expect_success ' --quit keeps HEAD and conflicted index intact' '
@@ -132,6 +133,7 @@ test_expect_success '--abort to cancel multiple cherry-pick' '
132133 test_expect_code 1 git cherry-pick base..anotherpick &&
133134 git cherry-pick --abort &&
134135 test_path_is_missing .git/sequencer &&
136+ test_path_is_missing .git/CHERRY_PICK_HEAD &&
135137 test_cmp_rev initial HEAD &&
136138 git update-index --refresh &&
137139 git diff-index --exit-code HEAD
@@ -142,6 +144,7 @@ test_expect_success '--abort to cancel single cherry-pick' '
142144 test_expect_code 1 git cherry-pick picked &&
143145 git cherry-pick --abort &&
144146 test_path_is_missing .git/sequencer &&
147+ test_path_is_missing .git/CHERRY_PICK_HEAD &&
145148 test_cmp_rev initial HEAD &&
146149 git update-index --refresh &&
147150 git diff-index --exit-code HEAD
@@ -162,6 +165,7 @@ test_expect_success 'cherry-pick --abort to cancel multiple revert' '
162165 test_expect_code 1 git revert base..picked &&
163166 git cherry-pick --abort &&
164167 test_path_is_missing .git/sequencer &&
168+ test_path_is_missing .git/CHERRY_PICK_HEAD &&
165169 test_cmp_rev anotherpick HEAD &&
166170 git update-index --refresh &&
167171 git diff-index --exit-code HEAD
@@ -239,6 +243,7 @@ test_expect_success '--abort after last commit in sequence' '
239243 test_expect_code 1 git cherry-pick base..picked &&
240244 git cherry-pick --abort &&
241245 test_path_is_missing .git/sequencer &&
246+ test_path_is_missing .git/CHERRY_PICK_HEAD &&
242247 test_cmp_rev initial HEAD &&
243248 git update-index --refresh &&
244249 git diff-index --exit-code HEAD
0 commit comments