Switch to HTTPS for submodules
authorChristopher Head <chead@zaber.com>
Tue, 21 Jan 2020 20:44:46 +0000 (12:44 -0800)
committerTomas Vanek <vanekt@fbl.cz>
Sat, 8 Feb 2020 09:12:14 +0000 (09:12 +0000)
repo.or.cz already redirects HTTP requests to HTTPS. There is therefore
no possible benefit to keeping the submodule URLs using HTTP—anyone who
can’t access via HTTPS will fail anyway, immediately after the redirect.
Changing the submodule URLs eliminates one unnecessary HTTP request and,
more importantly, eliminates SSLStrip-style attacks.

Change-Id: I9faf1ec8aa87bcfd1acafe2c445a0baf2abfbd09
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/5406
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
.gitmodules

index 5865ff92a9036d93233ee8c7e05656242cdb9090..958c5d901c26dd22af43d2ed5833419e561d45a4 100644 (file)
@@ -1,9 +1,9 @@
 [submodule "tools/git2cl"]
        path = tools/git2cl
-       url = http://repo.or.cz/r/git2cl.git
+       url = https://repo.or.cz/git2cl.git
 [submodule "jimtcl"]
        path = jimtcl
-       url = http://repo.or.cz/r/jimtcl.git
+       url = https://repo.or.cz/jimtcl.git
 [submodule "src/jtag/drivers/libjaylink"]
        path = src/jtag/drivers/libjaylink
-       url = http://repo.or.cz/r/libjaylink.git
+       url = https://repo.or.cz/libjaylink.git