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
parent
417accd9e0
commit
dd6f914186
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue