diff options
author | Johannes Sixt <j6t@kdbg.org> | 2016-09-20 09:16:11 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-21 21:05:35 +0300 |
commit | b07ad46432aa4fd80e8ebbcc48d38ec94ae20b01 (patch) | |
tree | c74fa41a2691077c7fb05c8c42e6bba91c5f6b24 /t | |
parent | 610d55af0f082f6b866dc858e144c03d8ed4424c (diff) |
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-x | t/t3700-add.sh | 2 |
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 && |