From dd6f9141869b67a617fa58e3357eb13ed35c0841 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 26 Dec 2024 23:47:48 +0000 Subject: [PATCH] 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 --- include/git.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/git.sh b/include/git.sh index 2c43cd2..77a2276 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"