Skip to content

Commit

Permalink
fix: use main as default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-sysbio committed Jul 29, 2021
1 parent 4079b0d commit 361d8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def mat_model(self, gem):
def pr_target(self):
return self.config['BASE']['pull_request_target']

def git_clone(self, section, branch='master'):
def git_clone(self, section, branch='main'):
sp.check_call(['git', 'clone', self.config[section][URL], '--depth', '1', '--branch', branch, self.install_dir(section)], stdout=sp.DEVNULL, stderr=sp.STDOUT)

def download(self, gem):
Expand Down Expand Up @@ -132,7 +132,7 @@ def check_dependencies(self):
l.info('{} is still {}'.format(tool, tool_version))
# Check COBRA, RAVEN, GECKO versions
self.cleanup('GECKO')
self.git_clone('GECKO')
self.git_clone('GECKO', system.config['GECKO']['branch'])
for tool in ['COBRA', 'RAVEN', 'GECKO']:
tool_version = self.git_tag(tool)
if tool_version != self.version(tool):
Expand Down

0 comments on commit 361d8be

Please sign in to comment.