server: drop appending repo name to repo path
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
efa1ccd90b
commit
802cd09d6d
|
@ -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://'):
|
||||
|
|
Loading…
Reference in New Issue