Skip to content

Commit

Permalink
t6050-replace: add test to clean up all the replace refs
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Sep 6, 2013
1 parent 3e625c8 commit 11aec95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t6050-replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 11aec95

Please sign in to comment.