scripts/kernel-functions: Fetch both Linus' tree and the stable tree

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8362 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-05-16 16:30:08 +00:00
parent b0991f6043
commit 86b2b49ade

View File

@@ -437,7 +437,8 @@ function download_and_extract_kernel_tree {
mkdir "linux-$1"
(
cd "${kernel_tree}" &&
{ git tag -l "v$1" >/dev/null || git fetch stable; } &&
{ git tag -l "v$1" >/dev/null ||
{ git fetch; git fetch stable; }; } &&
git archive "v$1"
) | tar -C "linux-$1" -xf-
else