From d591ea4c5dc90cfea96b780278fb36eafae03f0a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 26 Dec 2024 23:47:48 +0000 Subject: 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(-) (limited to 'include') 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" -- cgit v1.2.1