t7400: barf if git-submodule removes or replaces a file
[gitweb.git] / t / t7400-submodule-basic.sh
index 3940433b8f59196eff06dd24be24c9f54e7254ac..74fafceb716354075012b6714046415c4b3e5df6 100755 (executable)
@@ -72,7 +72,7 @@ test_expect_success 'update should fail when path is used by a file' '
        then
                echo "[OOPS] update should have failed"
                false
-       elif test -f lib && test "$(cat lib)" != "hello"
+       elif test "$(cat lib)" != "hello"
        then
                echo "[OOPS] update failed but lib file was molested"
                false