Skip to content

Commit

Permalink
Fetch new tags before comparing to remote
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Jul 22, 2024
1 parent 2535d25 commit 02f6f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkout-daq-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def check_output(cmd, is_success_required = True):

def checkout_commit(repo, commit, outdir, is_success_required = True):
cmd = f"""\nmkdir -p {outdir}; cd {outdir};
git fetch --tags;
git clone https://github.com/DUNE-DAQ/{repo}.git;
cd {repo};
git checkout {commit}
Expand All @@ -41,6 +40,7 @@ def checkout_tag(repo, commit, outdir):
cmd = f"""\nmkdir -p {outdir}; cd {outdir}; \
git clone https://github.com/DUNE-DAQ/{repo}.git; \
cd {repo}; \
git fetch --tags;
if ! git show-ref --tags --verify --quiet "refs/tags/{commit}"; then \
echo "{commit} does not exist for package {repo}. Exiting..."; \
exit 1; \
Expand Down

0 comments on commit 02f6f2b

Please sign in to comment.