mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
fix: Don't recompute URLs when name passed in App
This commit is contained in:
parent
5213807d8a
commit
0898e2d2a2
@ -61,6 +61,7 @@ class AppMeta:
|
||||
self.on_disk = False
|
||||
self.use_ssh = False
|
||||
self.from_apps = False
|
||||
self.is_url = False
|
||||
self.branch = branch
|
||||
self.setup_details()
|
||||
|
||||
@ -81,6 +82,7 @@ class AppMeta:
|
||||
|
||||
# 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()
|
||||
@ -123,6 +125,9 @@ class AppMeta:
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user