summaryrefslogtreecommitdiffstats
path: root/t/t0300-credentials.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-25 13:07:47 -0700
committerJunio C Hamano <gitster@pobox.com>2020-03-25 13:07:47 -0700
commitde49261b050d9cd8ec73842356077bc5b606640f (patch)
treeaff75b1af189d2c3d2dffe6d5d3ba6f2f812ce08 /t/t0300-credentials.sh
parentGit 2.26 (diff)
parentGit 2.25.3 (diff)
downloadgit-2.26.1.tar.gz
git-2.26.1.zip
Git 2.26.1v2.26.1
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0300-credentials.sh')
-rwxr-xr-xt/t0300-credentials.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0300-credentials.sh b/t/t0300-credentials.sh
index 39f097ea9e..5b78ebbc3f 100755
--- a/t/t0300-credentials.sh
+++ b/t/t0300-credentials.sh
@@ -436,4 +436,18 @@ test_expect_success 'empty helper spec resets helper list' '
EOF
'
+test_expect_success 'url parser ignores embedded newlines' '
+ check fill <<-EOF
+ url=https://one.example.com?%0ahost=two.example.com/
+ --
+ username=askpass-username
+ password=askpass-password
+ --
+ warning: url contains a newline in its host component: https://one.example.com?%0ahost=two.example.com/
+ warning: skipping credential lookup for url: https://one.example.com?%0ahost=two.example.com/
+ askpass: Username:
+ askpass: Password:
+ EOF
+'
+
test_done