From f9ce4136e44a42c97b583eec201c511a9c386be3 Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Sun, 27 Oct 2024 07:26:46 -0400 Subject: [PATCH] Restore `git describe` check in `version`. Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- script/version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/version b/script/version index a11a32d..73b1464 100755 --- a/script/version +++ b/script/version @@ -13,7 +13,7 @@ if ! cd -- "${mas_dir}"; then exit 1 fi -if [[ -z "${MAS_VERSION:-}" ]]; then +if [[ -z "${MAS_VERSION:-}" ]] && git describe >/dev/null 2>&1; then # Use last tag if MAS_VERSION environment variable is unset or empty MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true) fi