t6050-replace: add test to clean up all the replace refs
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3e625c8fec
commit
11aec9556b
@ -276,4 +276,10 @@ test_expect_success '-f option bypasses the type check' '
|
|||||||
git replace -f HEAD^ $BLOB
|
git replace -f HEAD^ $BLOB
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'replace ref cleanup' '
|
||||||
|
test -n "$(git replace)" &&
|
||||||
|
git replace -d $(git replace) &&
|
||||||
|
test -z "$(git replace)"
|
||||||
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user