Commit b1faa4cf authored by Benjamin Blanc's avatar Benjamin Blanc

revert part of testnode: Force git to use master branch

parent 87c64c05
...@@ -200,13 +200,7 @@ branch = %(branch)s ...@@ -200,13 +200,7 @@ branch = %(branch)s
if not os.path.exists(repository_path): if not os.path.exists(repository_path):
parameter_list = [config['git_binary'], 'clone', parameter_list = [config['git_binary'], 'clone',
vcs_repository['url']] vcs_repository['url']]
# XXX: In scalability we use revision to update code, parameter_list.extend(['-b', branch])
# so accordingly to recipe.slapos.gitclone we need to have
# a master branch.
if my_test_type == 'ScalabilityTest':
parameter_list.extend(['-b', 'master'])
elif branch is not None:
parameter_list.extend(['-b', branch])
parameter_list.append(repository_path) parameter_list.append(repository_path)
log(subprocess.check_output(parameter_list, stderr=subprocess.STDOUT)) log(subprocess.check_output(parameter_list, stderr=subprocess.STDOUT))
# Make sure we have local repository # Make sure we have local repository
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment