Skip to content

Commit

Permalink
fetch branches before traversing them
Browse files Browse the repository at this point in the history
  • Loading branch information
joejstuart committed Feb 28, 2024
1 parent 6af2e03 commit f4f2633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/sync-ec-cli-tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set -o nounset
EC_CLI_REPO_PATH="${1}"

collect_remote_branches() {
git fetch origin > /dev/null
echo "$(git branch --remote --format '%(refname:lstrip=-1)' --sort=refname --list 'origin/release-v*')"
}

Expand Down

0 comments on commit f4f2633

Please sign in to comment.