From: Christian Couder Date: Fri, 06 Sep 2013 05:10:56 GMT Subject: [PATCH v5 4/7] t6050-replace: add test to clean up all the replace refs Message-ID: <20130906051100.6657.48216.chriscool@tuxfamily.org> In-Reply-To: <20130906050702.6657.25651.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- t/t6050-replace.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh index 09bad98..09a2b49 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 -- 1.8.4.rc1.28.ge2684af