Skip to content

Commit

Permalink
Update scripts/export-git-env-vars.sh
Browse files Browse the repository at this point in the history
Co-authored-by: George Agapov <[email protected]>
  • Loading branch information
dkijania and georgeee authored Sep 16, 2024
1 parent 841b27b commit dcb19df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/export-git-env-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export GITHASH=$(git rev-parse --short=7 HEAD)
export THIS_COMMIT_TAG=$(git tag --points-at HEAD)

export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )
[[ -n "$BRANCH_NAME" ]] && export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g')
[[ -n "$BRANCH_NAME" ]] && export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g') || export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' )

export GITTAG=$(find_most_recent_numeric_tag HEAD)

Expand Down

0 comments on commit dcb19df

Please sign in to comment.