mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +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.on_disk = False
|
||||||
self.use_ssh = False
|
self.use_ssh = False
|
||||||
self.from_apps = False
|
self.from_apps = False
|
||||||
|
self.is_url = False
|
||||||
self.branch = branch
|
self.branch = branch
|
||||||
self.setup_details()
|
self.setup_details()
|
||||||
|
|
||||||
@ -81,6 +82,7 @@ class AppMeta:
|
|||||||
|
|
||||||
# fetch meta for repo from remote git server - traditional get-app url
|
# fetch meta for repo from remote git server - traditional get-app url
|
||||||
elif is_git_url(self.name):
|
elif is_git_url(self.name):
|
||||||
|
self.is_url = True
|
||||||
if self.name.startswith("git@") or self.name.startswith("ssh://"):
|
if self.name.startswith("git@") or self.name.startswith("ssh://"):
|
||||||
self.use_ssh = True
|
self.use_ssh = True
|
||||||
self._setup_details_from_git_url()
|
self._setup_details_from_git_url()
|
||||||
@ -123,6 +125,9 @@ class AppMeta:
|
|||||||
if self.on_disk:
|
if self.on_disk:
|
||||||
return os.path.abspath(self.name)
|
return os.path.abspath(self.name)
|
||||||
|
|
||||||
|
if self.is_url:
|
||||||
|
return self.name
|
||||||
|
|
||||||
if self.use_ssh:
|
if self.use_ssh:
|
||||||
return self.get_ssh_url()
|
return self.get_ssh_url()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user