summaryrefslogtreecommitdiff
path: root/t/t0300-credentials.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-17 20:37:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-17 20:43:08 (GMT)
commita5979d7009017c79b0100b7b66e8567b3ad7b022 (patch)
treee0386b6988b0aaeb6a6ce43cd5a4a5eb6c4e6776 /t/t0300-credentials.sh
parentcaccc527ca7f4b3e6f4bb6775cbff94b27741482 (diff)
parent21a3e5016bb218dc9b016284c88ba685bc446b70 (diff)
downloadgit-a5979d7009017c79b0100b7b66e8567b3ad7b022.zip
git-a5979d7009017c79b0100b7b66e8567b3ad7b022.tar.gz
git-a5979d7009017c79b0100b7b66e8567b3ad7b022.tar.bz2
Git 2.19.4v2.19.4
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