mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
fix: Set correct remote_server for cloning
Fixes https://github.com/frappe/bench/issues/1228
This commit is contained in:
parent
217f27f511
commit
9802feaa9c
@ -106,9 +106,11 @@ class AppMeta:
|
||||
|
||||
def __setup_details_from_git(self):
|
||||
if self.use_ssh:
|
||||
self.org, _repo = self.name.split(":")[1].split("/")
|
||||
_first_part, _second_part = self.name.split(":")
|
||||
self.remote_server = _first_part.split("@")[-1]
|
||||
self.org, _repo = _second_part.split("/")
|
||||
else:
|
||||
self.org, _repo = self.name.split("/")[-2:]
|
||||
self.remote_server, self.org, _repo = self.name.split("/")[-3:]
|
||||
|
||||
self.tag = self.branch
|
||||
self.repo = _repo.split(".")[0]
|
||||
|
Loading…
Reference in New Issue
Block a user