summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2023-03-07 02:17:21 +0100
committerSebastian Pipping <sebastian@pipping.org>2023-03-07 03:03:16 +0100
commitf103a4fd009d64ecdb7ee143edbefa65df3a774e (patch)
treeaa234b6617d402988ef233ff00c41220baf26214
parentfd41d749b134bc954f8b7880e03a0fef7b30500b (diff)
downloadlibexpat-git-f103a4fd009d64ecdb7ee143edbefa65df3a774e.tar.gz
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.
-rwxr-xr-xexpat/coverage.sh2
1 files changed, 1 insertions, 1 deletions
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=()