summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2016-09-20 08:16:11 +0200
committerJunio C Hamano <gitster@pobox.com>2016-09-21 11:05:35 -0700
commitb07ad46432aa4fd80e8ebbcc48d38ec94ae20b01 (patch)
treec74fa41a2691077c7fb05c8c42e6bba91c5f6b24
parent610d55af0f082f6b866dc858e144c03d8ed4424c (diff)
downloadgit-b07ad46432aa4fd80e8ebbcc48d38ec94ae20b01.tar.gz
t3700-add: create subdirectory gently
The subdirectory 'sub' is created early in the test file. Later, a test case removes it during its clean-up actions. However, this test case is protected by POSIXPERM. Consequently, 'sub' remains when the POSIXPERM prerequisite is not satisfied. Later, a recently introduced test case creates 'sub' again. Use -p with mkdir so that it does not fail if 'sub' already exists. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t3700-add.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index 0a962a60f2..16ab2da8a2 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -380,7 +380,7 @@ test_expect_success 'no file status change if no pathspec is given' '
'
test_expect_success 'no file status change if no pathspec is given in subdir' '
- mkdir sub &&
+ mkdir -p sub &&
(
cd sub &&
>sub-foo1 &&