Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orchestra-v3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alessandro Di Federico
orchestra-v3
Commits
82ca9782
Commit
82ca9782
authored
4 years ago
by
Filippo Cremonese
Browse files
Options
Downloads
Patches
Plain Diff
Use lru_cache instead of cached_property for compatibility with older python versions
parent
120e88bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orchestra/actions/clone.py
+3
-2
3 additions, 2 deletions
orchestra/actions/clone.py
with
3 additions
and
2 deletions
orchestra/actions/clone.py
+
3
−
2
View file @
82ca9782
import
os.path
import
re
from
functools
import
cache
d_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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment