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 | Merge branch 'ab/branch-sort' (diff) | |
| parent | fsck: reject .gitmodules git:// urls with newlines (diff) | |
| download | git-c7b1aaf6d6bb5746a98831854313ca8fccea600d.tar.gz git-c7b1aaf6d6bb5746a98831854313ca8fccea600d.zip | |
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
@@ -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; |
