Skip to content

Commit

Permalink
Pull the tag, because it might actually be a branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Feb 2, 2024
1 parent 744262c commit 4c2e0fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/lib/bashy-basics/buildy/pull-repo
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function actually-pull {

true \
&& git checkout --quiet "${mainBranch}" \
&& git 1>&2 pull --quiet "${idArgs[@]}" \
&& git 1>&2 pull --quiet \
&& git 1>&2 pull --quiet --tags --force
) \
|| return "$?"
Expand All @@ -107,7 +107,10 @@ function actually-pull {
progress-msg " Tag: ${tagSpec}"
(
cd "${destDir}"
git checkout --quiet "${tagSpec}"

true \
&& git checkout --quiet "${tagSpec}" \
&& git 1>&2 pull --quiet
) \
|| return "$?"
fi
Expand Down

0 comments on commit 4c2e0fe

Please sign in to comment.