diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-03-17 14:16:08 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-03-17 14:16:08 -0700 |
| commit | fe2268649423eba889e942293e9c98c781277bf2 (patch) | |
| tree | 167bed69fc0573efbaa3523342c17a4114c4f9f2 /t/t0300-credentials.sh | |
| parent | 367f12b7e92aef4e8a41fe601d90984a2b7a0381 (diff) | |
| parent | d1259ce117d0714f1441956805612fb36d7ce7f8 (diff) | |
| download | git-2.21.2.tar.xz | |
Git 2.21.2v2.21.2
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0300-credentials.sh')
| -rwxr-xr-x | t/t0300-credentials.sh | 14 |
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 |
