diff options
author | Jim Meyering <meyering@fb.com> | 2023-02-04 21:37:43 -0800 |
---|---|---|
committer | Jim Meyering <meyering@meta.com> | 2023-02-04 22:33:14 -0800 |
commit | f3f7e21274d1f6962b2ce721b66d11e43521d0fd (patch) | |
tree | e0deff3501f366e4972dc073aed3cdb7374ead63 /src | |
parent | fab6358d5a4f1ecd3660ba1da702156a59e5a263 (diff) | |
download | grep-f3f7e21274d1f6962b2ce721b66d11e43521d0fd.tar.gz |
maint: prefer https: to git:
The idea is to defend against some adversary-in-the-middle attacks.
Also prefer git.savannah.gnu.org over its shorter alias, git.sv.gnu.org
to avoid a warning e.g., from git clone.
Also, drop any final ".git" suffix on the resulting URIs.
Inspired by Paul Eggert's nearly identical changes to coreutils.
Induced by running these commands:
git grep -l 'git clone git:'|xargs perl -pi -e \
's{(git clone) git://(\S+)/([^/]+)\b}{$1 https://$2/git/$3}'
git grep -l git.sv.gn \
|xargs perl -pi -e 's{git\.sv\.gnu}{git\.savannah\.gnu}'
perl -pi -e \
's{(url =) git://(\S+)/([^/.]+)(\.git)?\b}{$1 https://$2/git/$3}'\
.gitmodules
* .gitmodules: As above.
* HACKING: Likewise.
* README-hacking: Likewise.
* src/grep.c (main): Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2829,7 +2829,7 @@ main (int argc, char **argv) version_etc (stdout, getprogname (), PACKAGE_NAME, VERSION, (char *) NULL); puts (_("Written by Mike Haertel and others; see\n" - "<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.")); + "<https://git.savannah.gnu.org/cgit/grep.git/tree/AUTHORS>.")); return EXIT_SUCCESS; } |