Skip to content

Commit

Permalink
Remove cache
Browse files Browse the repository at this point in the history
Will be added in a following PR
  • Loading branch information
singiamtel authored and ktf committed Jun 18, 2024
1 parent c61a614 commit c178465
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions alibuild_helpers/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c178465

Please sign in to comment.