Skip to content

Commit

Permalink
Remove leading forward-slash from branch names before running "git ch…
Browse files Browse the repository at this point in the history
…eckout" in the git submodule regression check
  • Loading branch information
kj4ezj committed Mar 25, 2020
1 parent 0a45189 commit b57931c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cicd/submodule-regression-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ declare -A BASE_MAP

if [[ $BUILDKITE == true ]]; then
[[ -z $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]] && echo "Unable to find BUILDKITE_PULL_REQUEST_BASE_BRANCH ENV. Skipping submodule regression check." && exit 0
BASE_BRANCH=$BUILDKITE_PULL_REQUEST_BASE_BRANCH
CURRENT_BRANCH=$BUILDKITE_BRANCH
BASE_BRANCH="$(echo "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" | sed 's.^/..')"
CURRENT_BRANCH="$(echo "$BUILDKITE_BRANCH" | sed 's.^/..')"
else
[[ -z $GITHUB_BASE_REF ]] && echo "Cannot find \$GITHUB_BASE_REF, so we have nothing to compare submodules to. Skipping submodule regression check." && exit 0
BASE_BRANCH=$GITHUB_BASE_REF
Expand Down

0 comments on commit b57931c

Please sign in to comment.