server: drop appending repo name to repo path

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-09-27 10:09:02 +02:00
parent efa1ccd90b
commit 802cd09d6d
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 2 additions and 5 deletions

View File

@ -23,12 +23,12 @@ class ManagedRepo:
def __init__(self, url, branch, dest_path):
self.url = url
self.branch = branch
self.dest_path = dest_path
self.path = dest_path
self._init()
self._checkout()
def _init(self):
self.repo = Repo.init(self._path())
self.repo = Repo.init(self.path)
self.repo.description = self.name
if 'origin' in self.repo.remotes:
self.origin = self.repo.remotes['origin']
@ -52,9 +52,6 @@ class ManagedRepo:
log.debug('Checking out: %s', self.branch)
self.repo.head.ref.checkout()
def _path(self):
return path.join(self.dest_path, self.name)
@property
def name(self):
if self.url.startswith('https://'):