http-push: when making directories, have a trailing slash in the path name
[gitweb.git] / t / t5540-http-push.sh
index da9588645cd9d0054440e5ed3ba14f630c44f506..22cfbb6a2d5ec6d274a19fa716e834138411caa5 100755 (executable)
@@ -76,6 +76,12 @@ test_expect_failure 'create and delete remote branch' '
        test_must_fail git show-ref --verify refs/remotes/origin/dev
 '
 
+test_expect_success 'MKCOL sends directory names with trailing slashes' '
+
+       ! grep "\"MKCOL.*[^/] HTTP/[^ ]*\"" < "$HTTPD_ROOT_PATH"/access.log
+
+'
+
 stop_httpd
 
 test_done