Skip to content

Commit

Permalink
added git fetch to switch to images branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Wimmer committed Jul 29, 2024
1 parent b24c817 commit 2e1b1b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wodoo/lib_composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ def _download_images(config, images_url):
effective_branch = config.ODOO_IMAGES_BRANCH or consts.IMAGES_REPO_BRANCH

if effective_branch and effective_branch != current_branch:
subprocess.check_call(
["git", "fetch"], cwd=config.dirs["images"]
)
subprocess.check_call(
["git", "checkout", effective_branch], cwd=config.dirs["images"]
)
Expand Down

0 comments on commit 2e1b1b5

Please sign in to comment.