Skip to content

Commit 15d3b6c

Browse files
bors[bot]lnicola
andauthored
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 <[email protected]>
2 parents 27e80e9 + 3b964c0 commit 15d3b6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rust-analyzer/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ fn set_rerun() {
3939
}
4040

4141
fn rev() -> Option<String> {
42-
let output = Command::new("git").args(&["describe", "--tags"]).output().ok()?;
42+
let output =
43+
Command::new("git").args(&["describe", "--tags", "--exclude", "nightly"]).output().ok()?;
4344
let stdout = String::from_utf8(output.stdout).ok()?;
4445
Some(stdout)
4546
}

0 commit comments

Comments
 (0)