From: Christian Couder Date: Fri, 6 Sep 2013 05:10:56 +0000 (+0200) Subject: t6050-replace: add test to clean up all the replace refs X-Git-Tag: v1.8.5-rc0~76^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/11aec9556b1facd6272495690bd61995bd83547c t6050-replace: add test to clean up all the replace refs Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- 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