Skip to content

Commit

Permalink
Update hack/util.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Hongcai Ren <[email protected]>
  • Loading branch information
dongjiang1989 and RainbowMango authored Feb 17, 2025
1 parent 366033d commit d76e794
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,10 @@ function util::get_version() {
git describe --tags --dirty
}

function util::get_revision() {
git rev-parse --short HEAD
}

function util::version_ldflags() {
# Git information
GIT_VERSION=$(util::get_version)
# Git revision
GIT_ABBREVIATIVE_COMMIT=$(util::get_revision)
GIT_ABBREVIATIVE_COMMIT=$(git rev-parse --short HEAD)
GIT_COMMIT_HASH=$(git rev-parse HEAD)
if git_status=$(git status --porcelain 2>/dev/null) && [[ -z ${git_status} ]]; then
GIT_TREESTATE="clean"
Expand Down

0 comments on commit d76e794

Please sign in to comment.