Skip to content

Commit

Permalink
fix: Don't recompute URLs when name passed in App
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Jan 4, 2022
1 parent 5213807 commit 0898e2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Healthcare(AppConfig):
self.on_disk = False
self.use_ssh = False
self.from_apps = False
self.is_url = False
self.branch = branch
self.setup_details()

Expand All @@ -81,6 +82,7 @@ def setup_details(self):

# fetch meta for repo from remote git server - traditional get-app url
elif is_git_url(self.name):
self.is_url = True
if self.name.startswith("git@") or self.name.startswith("ssh://"):
self.use_ssh = True
self._setup_details_from_git_url()
Expand Down Expand Up @@ -123,6 +125,9 @@ def url(self):
if self.on_disk:
return os.path.abspath(self.name)

if self.is_url:
return self.name

if self.use_ssh:
return self.get_ssh_url()

Expand Down

0 comments on commit 0898e2d

Please sign in to comment.