X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3600-rm.sh;h=b26cabd571503696a2bfa356e4f6ac46febf74ba;hb=9bdef78fb05ce2ca7788518e17ae20488b153335;hp=b514cbb60665fef9d5cd67b8f7bcd8e8a3c2d0a5;hpb=cb597adb5cb989540ebd77afc9507cd24d6c70bd;p=git.git diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh index b514cbb60..b26cabd57 100755 --- a/t/t3600-rm.sh +++ b/t/t3600-rm.sh @@ -28,22 +28,6 @@ embedded' && git commit -m 'add files with tabs and newlines' " -# Determine rm behavior -# Later we will try removing an unremovable path to make sure -# git rm barfs, but if the test is run as root that cannot be -# arranged. -: >test-file -chmod a-w . -rm -f test-file 2>/dev/null -if test -f test-file -then - test_set_prereq RO_DIR -else - skip_all='skipping removal failure test (perhaps running as root?)' -fi -chmod 775 . -rm -f test-file - test_expect_success \ 'Pre-check that foo exists and is in index before git rm foo' \ '[ -f foo ] && git ls-files --error-unmatch foo'