Skip to content

Commit

Permalink
Reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Jan 16, 2024
1 parent 93126bf commit 7b214b9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
"https://github.com/nasa/fprime.git",
]
)
# Checkout F´ submodules (e.g. googletest)
res = subprocess.run(
["git", "submodule", "update", "--init", "--recursive"],
capture_output=True,
)
if res.returncode != 0:
print("[WARNING] Unable to initialize submodules. Functionality may be limited.")

subprocess.run(
["git", "fetch", "origin", "--depth", "1", "tag", latest_tag_name],
cwd="./fprime",
Expand All @@ -48,14 +56,6 @@
print(f"[ERROR] Unable to checkout tag: {latest_tag_name}. Exit...")
sys.exit(1) # sys.exit(1) indicates failure to cookiecutter

# Checkout F´ submodules (e.g. googletest)
res = subprocess.run(
["git", "submodule", "update", "--init", "--recursive"],
cwd="./fprime",
capture_output=True,
)
if res.returncode != 0:
print("[WARNING] Unable to initialize submodules. Functionality may be limited.")

# Install venv if requested
if "{{cookiecutter.__install_venv}}" == "yes":
Expand Down

0 comments on commit 7b214b9

Please sign in to comment.