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>
This commit is contained in:
Leah Rowe
2024-12-26 23:47:48 +00:00
parent b5da9feba3
commit d591ea4c5d
+1 -2
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"