Skip to content
Snippets Groups Projects
Commit 79bdebb9 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

integrate_into_manifest: Specify branch in Repo clone command

parent 435fdd8f
No related branches found
No related tags found
1 merge request!36integrate_into_manifest: Specify branch in Repo clone command
Pipeline #8170 passed with stage
in 38 seconds
...@@ -30,8 +30,9 @@ def integrate_into_manifest( ...@@ -30,8 +30,9 @@ def integrate_into_manifest(
# Checkout manifest # Checkout manifest
try: try:
manifest_repo = Repo.clone_from(clone_url.url, manifest_dir) manifest_repo = Repo.clone_from(
manifest_repo.heads[integration_base].checkout() clone_url.url, manifest_dir, branch=integration_base
)
except GitCommandError as e: except GitCommandError as e:
sys.exit("ERROR: could not clone manifest repository\n" + str(e)) sys.exit("ERROR: could not clone manifest repository\n" + str(e))
except IndexError as e: except IndexError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment