the semantics of how mkdir -p should work, specially when using -m are
not standard and in this case NetBSD will assume that the permision
should not be changed, breaking the test

-p is technically not needed either, but will be cleared in a future
patch eventhough it could be considered an alternative fix

Signed-off-by: Carlo Marcelo Arenas Belón <care...@gmail.com>
---
 t/t0301-credential-cache.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/t/t0301-credential-cache.sh b/t/t0301-credential-cache.sh
index fd92533acf..9529c612af 100755
--- a/t/t0301-credential-cache.sh
+++ b/t/t0301-credential-cache.sh
@@ -77,9 +77,9 @@ test_expect_success "use custom XDG_CACHE_HOME even if xdg 
socket exists" '
 test_expect_success 'use user socket if user directory exists' '
        test_when_finished "
                git credential-cache exit &&
-               rmdir \"\$HOME/.git-credential-cache/\"
+               rmdir \"\$HOME/.git-credential-cache\"
        " &&
-       mkdir -p -m 700 "$HOME/.git-credential-cache/" &&
+       mkdir -p -m 700 "$HOME/.git-credential-cache" &&
        check approve cache <<-\EOF &&
        protocol=https
        host=example.com
@@ -92,10 +92,10 @@ test_expect_success 'use user socket if user directory 
exists' '
 test_expect_success SYMLINKS 'use user socket if user directory is a symlink 
to a directory' '
        test_when_finished "
                git credential-cache exit &&
-               rmdir \"\$HOME/dir/\" &&
+               rmdir \"\$HOME/dir\" &&
                rm \"\$HOME/.git-credential-cache\"
        " &&
-       mkdir -p -m 700 "$HOME/dir/" &&
+       mkdir -p -m 700 "$HOME/dir" &&
        ln -s "$HOME/dir" "$HOME/.git-credential-cache" &&
        check approve cache <<-\EOF &&
        protocol=https
-- 
2.20.0.rc1

Reply via email to