From c55efed15d19a3d2c2ede583749c87f9fb8dab2c Mon Sep 17 00:00:00 2001 From: shu-gong Date: Thu, 16 Jun 2022 19:16:18 +0800 Subject: [PATCH] relocate base --- install/cx/build/cxComponents.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/install/cx/build/cxComponents.py b/install/cx/build/cxComponents.py index 7e7c8ad..26278b3 100755 --- a/install/cx/build/cxComponents.py +++ b/install/cx/build/cxComponents.py @@ -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