Skip to content

Commit

Permalink
Merge pull request warewulf#1198 from anderbubble/get-version-lightwe…
Browse files Browse the repository at this point in the history
…ight-tags

Use lightweight tags when generating version
  • Loading branch information
anderbubble authored Apr 19, 2024
2 parents 26a4c30 + f27e28d commit 4f2e50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
# gitdesc extracts the closest version tag, removing the leading "v" and
# returning the rest
gitdesc() {
git describe --match='v[0-9]*' --always --candidates=1 "$@" 2>/dev/null |
git describe --tags --match='v[0-9]*' --always --candidates=1 "$@" 2>/dev/null |
sed -e 's,^v,,'
}

Expand Down

0 comments on commit 4f2e50b

Please sign in to comment.