summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2013-09-06 05:10:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-06 20:29:44 (GMT)
commit11aec9556b1facd6272495690bd61995bd83547c (patch)
tree08940f8589994818835045f424d6dda343dfbeed
parent3e625c8fec8a2ec49352e8f0a3862ccbfca11d3a (diff)
downloadgit-11aec9556b1facd6272495690bd61995bd83547c.zip
git-11aec9556b1facd6272495690bd61995bd83547c.tar.gz
git-11aec9556b1facd6272495690bd61995bd83547c.tar.bz2
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>
-rwxr-xr-xt/t6050-replace.sh6
1 files changed, 6 insertions, 0 deletions
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