Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve versioning from shallow git clones
if an annotated tag is found, the git describe string will be similar to: v0.7.2-15-g2c897d90 When using shallow clones, the commit being built may not have an annotated tag in its history, `git describe` will only be the abbreviated commit hash in this case: 2c897d9 This commit tries to detect these situations, and adds a 'git' prefix to the hash in these cases to make the version info look a bit better: $ gvproxy --version: gvproxy version git2c897d90 Signed-off-by: Christophe Fergeau <[email protected]>
- Loading branch information