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>
Christian Couder committed
Sep 6, 2013 at 07:10 UTC
11aec9556b1facd6272495690bd61995bd83547c
1 file changed
+6
t/t6050-replace.sh
+6
@@ -276,4 +276,10 @@ test_expect_success '-f option bypasses the type check' '
276
git replace -f HEAD^ $BLOB
277
'
278
279
+test_expect_success 'replace ref cleanup' '
280
+ test -n "$(git replace)" &&
281
+ git replace -d $(git replace) &&
282
+ test -z "$(git replace)"
283
+'
284
+
285
test_done