From 77134533565cf38b91a3fe2f3b70a2f4e8d18a02 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Mon, 12 Mar 2018 15:19:30 -0700 Subject: [PATCH] Exclude commas when pulling the tag out of the git export-subst format string --- hack/lib/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/version.sh b/hack/lib/version.sh index d6120d5a42aa..5d77bd0b9ef1 100644 --- a/hack/lib/version.sh +++ b/hack/lib/version.sh @@ -45,7 +45,7 @@ kube::version::get_version_vars() { # When a 'git archive' is exported, the '$Format:%D$' below will look # something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: ' # can be extracted from it. - if [[ '$Format:%D$' =~ tag:\ (v[^ ]+) ]]; then + if [[ '$Format:%D$' =~ tag:\ (v[^ ,]+) ]]; then KUBE_GIT_VERSION="${BASH_REMATCH[1]}" fi fi