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:
bors[bot] 2021-04-13 06:22:09 +00:00 committed by GitHub
commit 15d3b6c577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}