From 92aa7b3de206bd497744abd73d6e72e1cb6091cf Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 17 May 2023 13:17:16 -0500 Subject: [PATCH] Use HTTPS for kernel.org sources checkout HTTPS is more secure and less likely to be blocked by firewalls. The other sources here use HTTPS now, update the kernel to the same. --- lib/functions/configuration/main-config.sh | 4 ++-- lib/functions/general/git-ref2info.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/functions/configuration/main-config.sh b/lib/functions/configuration/main-config.sh index 600a53ebd3..3f2a8e896a 100644 --- a/lib/functions/configuration/main-config.sh +++ b/lib/functions/configuration/main-config.sh @@ -178,8 +178,8 @@ function do_main_configuration() { MAINLINE_FIRMWARE_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-firmware.git' ;; *) - MAINLINE_KERNEL_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' # "linux-stable" was renamed to "linux" - MAINLINE_FIRMWARE_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git' + MAINLINE_KERNEL_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' # "linux-stable" was renamed to "linux" + MAINLINE_FIRMWARE_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git' ;; esac diff --git a/lib/functions/general/git-ref2info.sh b/lib/functions/general/git-ref2info.sh index da433722a6..a63e024d0f 100644 --- a/lib/functions/general/git-ref2info.sh +++ b/lib/functions/general/git-ref2info.sh @@ -90,7 +90,7 @@ function memoized_git_ref_to_info() { declare url="undetermined" case "${git_source}" in - "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git") + "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git") url="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Makefile?h=${sha1}" ;;