From f103a4fd009d64ecdb7ee143edbefa65df3a774e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 7 Mar 2023 02:17:21 +0100 Subject: [PATCH] coverage.sh: Be robust towards absence of Git tags .. e.g. when someone forks the Git repository in a way that only copies the master branch but no tags. --- expat/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/coverage.sh b/expat/coverage.sh index 29855cc0..617f48d9 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -262,7 +262,7 @@ _show_summary() { _main() { - version="$(git describe --tags)" + version="$(git describe --tags 2>/dev/null || echo HEAD)" coverage_info=coverage.info local build_dirs=()