Signed-off-by: Fernando J. Pereda <ferdy@xxxxxxxxxx> --- t/t0004-unwritable.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/t/t0004-unwritable.sh b/t/t0004-unwritable.sh index 9255c63..728ec22 100755 --- a/t/t0004-unwritable.sh +++ b/t/t0004-unwritable.sh @@ -4,6 +4,13 @@ test_description='detect unwritable repository and fail correctly' . ./test-lib.sh +if test "$(id -u)" -eq 0 +then + test_expect_success 'root writes to unwritable places, skipping test' : + test_done + exit +fi + test_expect_success setup ' >file && -- 1.5.6.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html