Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-version.sh: add support for shallow clones
In shallow clones, `git describe` cannot help us (as we have no tags to describe the version). Therefore, we fall back to `git diff` (with `--quiet`) to check if the working directory is clean. github actions use a shallow clone by default, so `git-version.sh` used to incorreclty report `-dirty` there.
- Loading branch information