mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 20:53:37 +00:00
Exclude nightly tag from git describe to fix version string
This commit is contained in:
parent
27e80e9438
commit
3b964c0c81
@ -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