Skip to content

Commit

Permalink
git fetch for ci needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 19, 2023
1 parent fe34f7c commit ac4af64
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .bin/prepare-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,10 @@ update_readme(){
main() {
local CANONICAL_VERSION
CANONICAL_VERSION="$(grep 'Stable tag:' < "${CANONICAL_FILE}" | awk '{print $3}')"

# fetch all tags and history:
if ! git rev-parse --is-shallow-repository > /dev/null; then
git fetch --tags --unshallow --prune
fi

if ! git show-ref --quiet refs/heads/main && [[ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]]; then
git branch --track main origin/main
fi
# fetch all tags and history:
git fetch --tags --unshallow --prune
git branch --track main origin/main

git checkout "${RELEASE_BRANCH}"
git pull origin "${RELEASE_BRANCH}"
Expand Down

0 comments on commit ac4af64

Please sign in to comment.