Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab/benchmarks/steps/detect-baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ elif [[ "${UPSTREAM_BRANCH}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
BASELINE_BRANCH=$(echo "${UPSTREAM_BRANCH:1}" | cut -d. -f1-2)

# Check if a release branch exists or not
if git ls-remote --exit-code --heads origin "${BASELINE_BRANCH}" > /dev/null; then
if git ls-remote --exit-code --heads origin "refs/heads/${BASELINE_BRANCH}" > /dev/null; then
echo "Found remote branch origin/${BASELINE_BRANCH}"
else
echo "Remote branch origin/${BASELINE_BRANCH} not found. Falling back to main."
Expand Down
Loading