Skip to content

Commit

Permalink
aquarium: fetch origin before building repos
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Dec 21, 2021
1 parent cc15644 commit 43c728f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aquarium.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def build_src(src_dir, version, git_url):
os.makedirs(SRC_DIR)
subprocess.check_call(["git", "-C", f"{SRC_DIR}", "clone", git_url])

subprocess.check_call(["git", "-C", f"{src_dir}", "checkout", version])
subprocess.check_call(["git", "-C", f"{src_dir}", "fetch", "origin", version])
subprocess.check_call(["git", "-C", f"{src_dir}", "checkout", f"origin/{version}"])
subprocess.check_call(
["cargo", "build", "--manifest-path", f"{src_dir}/Cargo.toml"]
)
Expand Down

0 comments on commit 43c728f

Please sign in to comment.