diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2023-03-07 19:10:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 19:10:03 +0100 |
commit | f2925e61833d5d39065c80d131d096870c8e3199 (patch) | |
tree | aa234b6617d402988ef233ff00c41220baf26214 | |
parent | fd41d749b134bc954f8b7880e03a0fef7b30500b (diff) | |
parent | f103a4fd009d64ecdb7ee143edbefa65df3a774e (diff) | |
download | libexpat-git-f2925e61833d5d39065c80d131d096870c8e3199.tar.gz |
Merge pull request #695 from libexpat/fix-coverage-sh-for-forks
coverage.sh: Be robust towards absence of Git tags
-rwxr-xr-x | expat/coverage.sh | 2 |
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=() |