Merge branch 'jk/forbid-lf-in-git-url'

Newline characters in the host and path part of git:// URL are
now forbidden.

* jk/forbid-lf-in-git-url:
  fsck: reject .gitmodules git:// urls with newlines
  git_connect_git(): forbid newlines in host and path
This commit is contained in:
Junio C Hamano
2021-01-25 14:19:17 -08:00
4 changed files with 23 additions and 1 deletions

View File

@ -103,6 +103,11 @@ test_expect_success 'fetch notices corrupt idx' '
)
'
test_expect_success 'client refuses to ask for repo with newline' '
test_must_fail git clone "$GIT_DAEMON_URL/repo$LF.git" dst 2>stderr &&
test_i18ngrep newline.is.forbidden stderr
'
test_remote_error()
{
do_export=YesPlease