git.sh: don't initialise livepull globally

set this variable in the tmpclone function. otherwise,
certain submodules might always download every time,
when handling multiple projects.

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2024-12-26 23:47:48 +00:00
parent 417accd9e0
commit dd6f914186
1 changed files with 1 additions and 2 deletions

View File

@ -91,10 +91,9 @@ fetch_submodule()
"$mdir/${1##*/}/patches"
}
livepull="n"
tmpclone()
{
[ "$repofail" = "y" ] && \
livepull="n" && [ "$repofail" = "y" ] && \
printf "Cached clone failed; trying online.\n" 1>&2 && livepull="y"
repofail="n"