summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-12-26 23:47:48 +0000
committerLeah Rowe <leah@libreboot.org>2024-12-26 23:47:48 +0000
commitd591ea4c5dc90cfea96b780278fb36eafae03f0a (patch)
tree8163e82ac4c0d39bd78385124bec726100e26b5b /include
parentb5da9feba3b147019384e198c310209746337d62 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/git.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh
index 2c43cd22..77a22763 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -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"