Make lighthouse_version compatible with old Git (#2223)
## Proposed Changes When building the release binaries with Cross, Ubuntu 16.04 is used, which uses an old verison of Git lacking support for `--exclude`. This PR changes `lighthouse_version` to use `--match` instead.
This commit is contained in:
parent
afd4786c59
commit
0b2ccecbcf
@ -9,7 +9,13 @@ use target_info::Target;
|
|||||||
///
|
///
|
||||||
/// `Lighthouse/v0.2.0-1419501f2+`
|
/// `Lighthouse/v0.2.0-1419501f2+`
|
||||||
pub const VERSION: &str = git_version!(
|
pub const VERSION: &str = git_version!(
|
||||||
args = ["--always", "--dirty=+", "--abbrev=7", "--exclude=*"],
|
args = [
|
||||||
|
"--always",
|
||||||
|
"--dirty=+",
|
||||||
|
"--abbrev=7",
|
||||||
|
// NOTE: using --match instead of --exclude for compatibility with old Git
|
||||||
|
"--match=thiswillnevermatchlol"
|
||||||
|
],
|
||||||
prefix = "Lighthouse/v1.1.3-",
|
prefix = "Lighthouse/v1.1.3-",
|
||||||
fallback = "unknown"
|
fallback = "unknown"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user