From 7c26216524cbb72803f2c028a3d56dd466d96b26 Mon Sep 17 00:00:00 2001 From: Matthew Newton Date: Tue, 10 Oct 2023 12:20:16 +0100 Subject: [PATCH] fix version.sh output when we're on a tag --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sh b/version.sh index 8d86d8acbf..6cddbe16c6 100755 --- a/version.sh +++ b/version.sh @@ -92,7 +92,7 @@ version_component() commit_depth) out=$(\ cat ${commit_depth_file} 2> /dev/null || \ - (${in_repo} && ${git} describe --tags --match 'branch_*' --match 'release_*' | cut -d '-' -f 2) || \ + (${in_repo} && ${git} describe --tags --match 'branch_*' --match 'release_*' | cut -s -d '-' -f 2) || \ echo "${commit_depth}" \ ) ;; -- 2.47.3