fix branch switching to use value from options (#45062)

This commit is contained in:
Frédéric Péters 2020-07-13 09:53:21 +02:00
parent 14ef685427
commit f2d6c89b8c
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ def setup_git_tree(project_reference, options):
project_url = project_reference
call("git clone %s" % project_url)
if options.branch:
subprocess.check_call(['git', 'checkout', '--quiet', branch_name],
subprocess.check_call(['git', 'checkout', '--quiet', options.branch],
cwd=git_project_path)
branch_name = get_git_branch_name(project_reference)