2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

fix: Set remote_server attr "better"

So better here is relative. The point was to not have the parsing break
everything. So, idk whats org and repo now right off the bat...and since
we're not using this info, we dont need to care about it rn
This commit is contained in:
Gavin D'souza 2022-01-04 17:04:45 +05:30
parent 0898e2d2a2
commit e3b9c2a239

View File

@ -110,9 +110,9 @@ class AppMeta:
if self.use_ssh:
_first_part, _second_part = self.name.split(":")
self.remote_server = _first_part.split("@")[-1]
self.org, _repo = _second_part.split("/")
self.org, _repo = _second_part.rsplit("/", 1)
else:
self.remote_server, self.org, _repo = self.name.split("/")[-3:]
self.remote_server, self.org, _repo = self.name.rsplit("/", 2)
self.tag = self.branch
self.repo = _repo.split(".")[0]