diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2023-03-07 02:17:21 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2023-03-07 03:03:16 +0100 |
commit | f103a4fd009d64ecdb7ee143edbefa65df3a774e (patch) | |
tree | aa234b6617d402988ef233ff00c41220baf26214 | |
parent | fd41d749b134bc954f8b7880e03a0fef7b30500b (diff) | |
download | libexpat-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-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=() |