]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0300-credentials.sh
credential: avoid writing values with newlines
[thirdparty/git.git] / t / t0300-credentials.sh
index 03bd31e9f22a1964551cb07d76c45ce90a3cd17e..15cc3c5abb5b107f851ef2029092ca7a7d758507 100755 (executable)
@@ -309,4 +309,10 @@ test_expect_success 'empty helper spec resets helper list' '
        EOF
 '
 
+test_expect_success 'url parser rejects embedded newlines' '
+       test_must_fail git credential fill <<-\EOF
+       url=https://one.example.com?%0ahost=two.example.com/
+       EOF
+'
+
 test_done