Skip to content

Commit

Permalink
fix: Set correct remote_server for cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Dec 28, 2021
1 parent 217f27f commit 9802fea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ def _setup_details_from_git_url(self):

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]
Expand Down

0 comments on commit 9802fea

Please sign in to comment.