Skip to content

Commit 2c45eb9

Browse files
committed
default to tag 0.0.0
1 parent a59701b commit 2c45eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525

2626
MAIN_BRANCH="main"
2727
git fetch --tags > /dev/null 2>&1
28-
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
28+
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1` 2>/dev/null || echo "0.0.0")
2929

3030
echo "The latest tag is $LATEST_TAG."
3131

0 commit comments

Comments
 (0)