diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2013-09-06 07:10:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-06 13:29:44 -0700 |
commit | 11aec9556b1facd6272495690bd61995bd83547c (patch) | |
tree | 08940f8589994818835045f424d6dda343dfbeed /t | |
parent | 3e625c8fec8a2ec49352e8f0a3862ccbfca11d3a (diff) | |
download | git-11aec9556b1facd6272495690bd61995bd83547c.tar.gz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t6050-replace.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |