-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 '[email protected]: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 | ||
|