From 86d2ec1f799b13c4df6636d48543a9a97ca15a0f Mon Sep 17 00:00:00 2001 From: Slaviusz <30972602+Slaviusz@users.noreply.github.com> Date: Mon, 7 Nov 2022 14:00:30 +0100 Subject: [PATCH] Add Torvalds' git repo for faster -rc kernel evaluation (#642) --- linux-tkg-config/prepare | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index f5eae3a..58b5b49 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -11,6 +11,7 @@ _kernel_git_remotes=( ["kernel.org"]="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git" ["googlesource.com"]="https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable" ["github.com"]="https://github.com/gregkh/linux.git" + ["torvalds"]="https://github.com/torvalds/linux.git" ) _git_remote_names=( "${!_kernel_git_remotes[@]}" ) @@ -424,6 +425,7 @@ _linux_git_branch_checkout() { msg2 "master branch doesn't locally exist, shallow cloning..." git remote set-branches --add kernel.org master git remote set-branches --add googlesource.com master + git remote set-branches --add torvalds master git fetch --depth=1 $_git_mirror master git fetch --depth 1 $_git_mirror tag "$_kernel_git_tag" git checkout -b master-${_git_mirror} ${_git_mirror}/master @@ -441,6 +443,7 @@ _linux_git_branch_checkout() { msg2 "${_basekernel}.y branch doesn't locally exist, shallow cloning..." git remote set-branches --add kernel.org linux-${_basekernel}.y git remote set-branches --add googlesource.com linux-${_basekernel}.y + git remote set-branches --add torvalds linux-${_basekernel}.y git fetch --depth=1 $_git_mirror linux-${_basekernel}.y git fetch --depth=1 $_git_mirror tag "$_kernel_git_tag" git checkout -b linux-${_basekernel}-${_git_mirror} ${_git_mirror}/linux-${_basekernel}.y