Skip to content

Commit 6fe018a

Browse files
committed
Adjust contrib/commit-name.sh to new version number format
Assumes the change to take place when switching VERSION to 0.6.0-dev.
1 parent 965e03c commit 6fe018a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/commit-name.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ nb=$(git rev-list --count "$gitref" "^$last_tag")
1414
if [ $nb = 0 ]; then
1515
echo $ver
1616
else
17-
echo "$ver+$nb"
17+
if [ $major = 0 -a $minor -le 5 ]; then
18+
echo "$ver+$nb"
19+
else
20+
echo "$ver.$nb"
21+
fi
1822
fi

0 commit comments

Comments
 (0)