mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-06 21:55:00 +00:00
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.
This commit is contained in:
parent
fd41d749b1
commit
f103a4fd00
1 changed files with 1 additions and 1 deletions
|
@ -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=()
|
||||
|
|
Loading…
Add table
Reference in a new issue