Skip to content

Commit

Permalink
PMM-4817 clone a specific branch, not main
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Jul 21, 2023
1 parent f90e02f commit 33e8361
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build/scripts/create-tags
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ REPO_DIR=pmm-submodules
if [ -d "$REPO_DIR" ]; then
rm -rf "$REPO_DIR"
fi
git clone https://github.com/Percona-Lab/pmm-submodules "$REPO_DIR"

cd "$REPO_DIR" >/dev/null
if ! git checkout "pmm-${VERSION}"; then
echo "Fatal: failed to check out to pmm-${VERSION} branch"
cd -
rm -rf "$REPO_DIR"
if ! git clone --branch "pmm-${VERSION}" https://github.com/Percona-Lab/pmm-submodules "$REPO_DIR"; then
echo "Fatal: failed to clone pmm-submodules, branch pmm-${VERSION}"
exit 0 # this is on purpose, we don't want to fail the pipeline
fi

cd "$REPO_DIR" >/dev/null
git submodule update --init --recursive

for REPO in "${repos[@]}"; do
Expand Down

0 comments on commit 33e8361

Please sign in to comment.