Skip to content

Commit

Permalink
relocate base
Browse files Browse the repository at this point in the history
  • Loading branch information
shu-gong committed Jun 16, 2022
1 parent d9ff6f1 commit c55efed
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions install/cx/build/cxComponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,18 @@ def path(self):
def sourceFolder(self):
return self.controlData.getRepoFolderName()
def repository(self):
return '%s/CustusX.git' % self.controlData.gitrepo_main_site_base
def _rawCheckout(self):
pass # should never happen. This file is in the repo.
#self._getBuilder().gitCloneIntoExistingDirectory(self.repository(), self.controlData.main_branch)
#return '%s/CustusX.git' % self.controlData.gitrepo_main_site_base
if self.controlData.git_use_https:
return 'https://github.com/shu-gong/custusx-source.git'
else:
return 'git@github.com:shu-gong/custusx-source.git'
def update(self):
self._getBuilder().gitSetRemoteURL(self.repository())
# warning: if this call checks out a different tag/branch than the current,
# the script and code will be inconsistent. The user should have set the correct
# tag/branch either manually or by using a wrapper script (e.g cxCustusXFinder).
self._getBuilder().gitCheckoutDefaultBranch()
tag = 'v0.2'
self._getBuilder().gitCheckoutSha(tag)
def configure(self):
builder = self._getBuilder()
add = builder.addCMakeOption
Expand Down

0 comments on commit c55efed

Please sign in to comment.