Skip to content

Commit 11aec95

Browse files
chriscoolgitster
authored andcommitted
t6050-replace: add test to clean up all the replace refs
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e625c8 commit 11aec95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t6050-replace.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,10 @@ test_expect_success '-f option bypasses the type check' '
276276
git replace -f HEAD^ $BLOB
277277
'
278278

279+
test_expect_success 'replace ref cleanup' '
280+
test -n "$(git replace)" &&
281+
git replace -d $(git replace) &&
282+
test -z "$(git replace)"
283+
'
284+
279285
test_done

0 commit comments

Comments
 (0)