Skip to content

Commit

Permalink
fix current branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gohlke committed Oct 23, 2024
1 parent e1531db commit 8ec61bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ function tf_plan {
# shellcheck disable=SC2155
export CI_COMMIT_REF_NAME=$(git branch --show-current)
# shellcheck disable=SC2155
local remote=$(git config get branch.main.remote)
# shellcheck disable=SC2046
local remote=$(git config get branch.$(git branch --show-current).remote)
# shellcheck disable=SC2155
export CI_PROJECT_URL=$(git remote get-url "$remote" | sed -e 's|.*@ssh.||; s|:|/|; s|^|https://|; s|.git$||')
# shellcheck disable=SC2155
Expand Down

0 comments on commit 8ec61bf

Please sign in to comment.