From 11aec9556b1facd6272495690bd61995bd83547c Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Fri, 6 Sep 2013 07:10:56 +0200 Subject: [PATCH] t6050-replace: add test to clean up all the replace refs Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- t/t6050-replace.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh index 09bad9877f..09a2b49bfb 100755 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@ -276,4 +276,10 @@ test_expect_success '-f option bypasses the type check' ' 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 -- 2.43.2