t0027: do not use an empty string as a pathspec element
[gitweb.git] / t / t1300-repo-config.sh
index 1867a0fd419769195399864aa2ca7436c12005cd..d934a2441724332d9e8cebd7679788ee3a660fce 100755 (executable)
@@ -1158,6 +1158,9 @@ test_expect_success 'urlmatch' '
                cookieFile = /tmp/cookie.txt
        EOF
 
+       test_expect_code 1 git config --bool --get-urlmatch doesnt.exist https://good.example.com >actual &&
+       test_must_be_empty actual &&
+
        echo true >expect &&
        git config --bool --get-urlmatch http.SSLverify https://good.example.com >actual &&
        test_cmp expect actual &&