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:
@ -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
|
||||
|
Reference in New Issue
Block a user