diff --git a/orchestra/actions/clone.py b/orchestra/actions/clone.py index 821dc9334f2834912ac524893fa4432a155ed684..43e70b4db73766bb9718578dc4f02fe4ed8ee668 100644 --- a/orchestra/actions/clone.py +++ b/orchestra/actions/clone.py @@ -1,6 +1,6 @@ import os.path import re -from functools import cached_property +from functools import lru_cache from .action import Action from .util import run_script @@ -31,7 +31,8 @@ class CloneAction(Action): def _is_satisfied(self): return os.path.exists(self.environment["SOURCE_DIR"]) - @cached_property + @property + @lru_cache() def remotes(self): result = run_script('git -C "$ORCHESTRA_DOTDIR" remote show', environment=self.environment, quiet=True) return result.stdout.decode("utf-8").split("\n").strip().split("\n")