fix branch switching to use value from options (#45062)
This commit is contained in:
parent
14ef685427
commit
f2d6c89b8c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue