Merge #8496
8496: Exclude nightly tag from git describe to fix version string r=lnicola a=lnicola Otherwise if we run `git describe` on the release day we pick up the `nightly` tag from the previous release. changelog fix bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
15d3b6c577
@ -39,7 +39,8 @@ fn set_rerun() {
|
||||
}
|
||||
|
||||
fn rev() -> Option<String> {
|
||||
let output = Command::new("git").args(&["describe", "--tags"]).output().ok()?;
|
||||
let output =
|
||||
Command::new("git").args(&["describe", "--tags", "--exclude", "nightly"]).output().ok()?;
|
||||
let stdout = String::from_utf8(output.stdout).ok()?;
|
||||
Some(stdout)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user