diff --git a/Scripts/increment_build_number.sh b/Scripts/increment_build_number.sh index f8ac44e3..4ea125a9 100755 --- a/Scripts/increment_build_number.sh +++ b/Scripts/increment_build_number.sh @@ -9,7 +9,7 @@ infoplist_file="$(pwd)/Xcodes/Resources/Info.plist" # Get latest tag hash matching pattern -hash=$(git rev-list --tags="v" --max-count=1) +hash=$(git rev-list --tags="v*" --max-count=1) # Get latest tag at hash that matches the same pattern as a prefix in order to support commits with multiple tags last_tag=$(git describe --tags --match "v*" "$hash") # Get build number from last component of tag name