summaryrefslogtreecommitdiff
path: root/t/t0300-credentials.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-17 18:12:01 -0700
committerJunio C Hamano <gitster@pobox.com>2020-03-17 18:12:01 -0700
commit67b0a24910fbb23c8f5e7a2c61c339818bc68296 (patch)
treecfb499c09dd5d0310006062e1e361c42d0045283 /t/t0300-credentials.sh
parent0822e66b5d49d0de1aa767b38785e42de05eaf40 (diff)
parent506223f9c5c8956f895f0342e4a6d4244b5fa570 (diff)
downloadgit-2.25.3.tar.xz
Git 2.25.3v2.25.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 82eaaea0f4..b9c0f1f279 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