Skip to content

Commit

Permalink
fetch more git history as part of prep-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 18, 2023
1 parent d930d7f commit 0ece904
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bin/prepare-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ main() {
local CANONICAL_VERSION
CANONICAL_VERSION="$(grep 'Stable tag:' < "${CANONICAL_FILE}" | awk '{print $3}')"

# fetch all tags and history:
git fetch --tags --unshallow --prune

if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
git branch --track main origin/main
fi

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

0 comments on commit 0ece904

Please sign in to comment.