Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Avoid using "rolling" as version and use the previous version instead #309

Merged
merged 1 commit into from
Oct 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hack/get_version_from_git.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh
TAG=$(git describe --tags --abbrev=0 2>/dev/null)
if [[ "$TAG" == "rolling" ]]; then
TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null)
fi

if [ -n "${TAG}" ]; then
COMMITS_SINCE_TAG=$(git rev-list "${TAG}".. --count)
Expand Down