From: Christian Couder Date: Sun, 25 Aug 2013 13:06:07 GMT Subject: [PATCH 4/5] t6050-replace: add test to clean up all the replace refs Message-ID: <20130825130609.4681.43592.chriscool@tuxfamily.org> In-Reply-To: <20130825125940.4681.70226.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 8f631ac..4807689 100755 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@ -276,4 +276,10 @@ test_expect_success 'replaced and replacement objects must be of the same type' grep "replace ref '\''$BLOB'\'' is of type '\''blob'\''" err ' +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.24.g13dc82a