diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-01-25 14:19:17 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-25 14:19:17 -0800 |
commit | c7b1aaf6d6bb5746a98831854313ca8fccea600d (patch) | |
tree | ba09f9c7df3f2eb5a690b9a39be37915aebf4b18 /fsck.c | |
parent | 9e409d7e0762ff55c2787b4a106bf80ab2d57471 (diff) | |
parent | 6aed56736b882f94c81293d1646d27d10241349c (diff) |
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
Diffstat (limited to 'fsck.c')
-rw-r--r-- | fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck.c b/fsck.c index 69d0049e4d..4b7f0b73d7 100644 --- a/fsck.c +++ b/fsck.c @@ -1110,7 +1110,7 @@ static int check_submodule_url(const char *url) if (looks_like_command_line_option(url)) return -1; - if (submodule_url_is_relative(url)) { + if (submodule_url_is_relative(url) || starts_with(url, "git://")) { char *decoded; const char *next; int has_nl; |