summaryrefslogtreecommitdiff
path: root/t/t0300-credentials.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-17 21:24:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-17 21:24:55 (GMT)
commit69fab82147e74a51ee1144a336eb47c7297b9b78 (patch)
treebf5209473cfa39921c3eb069d236db9eb9f20a47 /t/t0300-credentials.sh
parentd9589d4051537c387b70dc76e430c61b4c85a86d (diff)
parentfe2268649423eba889e942293e9c98c781277bf2 (diff)
downloadgit-4c52d526ec9befe47613df9503ac5fecd5c890e2.zip
git-4c52d526ec9befe47613df9503ac5fecd5c890e2.tar.gz
git-4c52d526ec9befe47613df9503ac5fecd5c890e2.tar.bz2
Git 2.22.3v2.22.3
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 82eaaea..b9c0f1f 100755
--- a/t/t0300-credentials.sh
+++ b/t/t0300-credentials.sh
@@ -308,4 +308,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