From b3e7cc62ac3592abae1073d25f3bda85aeb1caa3 Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Tue, 19 Jan 2021 22:22:40 -0700 Subject: [PATCH] Fix Scripts/increment_build_number.sh --- Scripts/increment_build_number.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/increment_build_number.sh b/Scripts/increment_build_number.sh index f8ac44e..4ea125a 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