summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2016-09-20 06:16:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-21 18:05:35 (GMT)
commitb07ad46432aa4fd80e8ebbcc48d38ec94ae20b01 (patch)
treec74fa41a2691077c7fb05c8c42e6bba91c5f6b24 /t
parent610d55af0f082f6b866dc858e144c03d8ed4424c (diff)
downloadgit-b07ad46432aa4fd80e8ebbcc48d38ec94ae20b01.zip
git-b07ad46432aa4fd80e8ebbcc48d38ec94ae20b01.tar.gz
git-b07ad46432aa4fd80e8ebbcc48d38ec94ae20b01.tar.bz2
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>
Diffstat (limited to 't')
-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 0a962a6..16ab2da 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 &&