From f3f7e21274d1f6962b2ce721b66d11e43521d0fd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 4 Feb 2023 21:37:43 -0800 Subject: 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. --- README-hacking | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README-hacking') diff --git a/README-hacking b/README-hacking index e3e6a0b1..3d95d104 100644 --- a/README-hacking +++ b/README-hacking @@ -27,7 +27,7 @@ few prerequisites, later, a plain 'git pull && make' typically suffices. You can get a copy of the source repository like this: - $ git clone git://git.sv.gnu.org/ + $ git clone https://git.savannah.gnu.org/git/ $ cd where '' stands for 'coreutils' or whatever other package -- cgit v1.2.1