From c1784657f9c6071516c896aa81f0470b0683c6e4 Mon Sep 17 00:00:00 2001 From: Sergio Date: Tue, 18 Jun 2024 15:27:18 +0200 Subject: [PATCH] Remove cache Will be added in a following PR --- alibuild_helpers/git.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/alibuild_helpers/git.py b/alibuild_helpers/git.py index d67e8d09..4780ceab 100644 --- a/alibuild_helpers/git.py +++ b/alibuild_helpers/git.py @@ -8,13 +8,8 @@ """How many seconds to let any git command execute before being terminated.""" -# Don't recalculate this every time we need it. -_clone_speedup_cache = None def clone_speedup_options(): """Return a list of options supported by the system git which speed up cloning.""" - if _clone_speedup_cache is not None: - return _clone_speedup_cache - for filter_option in ("--filter=tree:0", "--filter=blob:none"): _, out = getstatusoutput("LANG=C git clone " + filter_option) if "unknown option" not in out and "invalid filter-spec" not in out: