mirror of
https://github.com/apognu/tuigreet.git
synced 2024-08-17 02:20:51 +03:00
Fixed internal auto-detected git version to not take the tip tag into account.
This commit is contained in:
parent
554c704d00
commit
d4cf3c312e
2
build.rs
2
build.rs
@ -8,7 +8,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn get_version() -> Result<String, Box<dyn Error>> {
|
||||
let tag = Command::new("git").args(&["describe", "--tags", "--abbrev=0"]).output()?;
|
||||
let tag = Command::new("git").args(&["describe", "--abbrev=0"]).output()?;
|
||||
let tag = match tag.status.code() {
|
||||
Some(0) => String::from_utf8(tag.stdout)?,
|
||||
_ => "0.0.0".to_string(),
|
||||
|
Loading…
Reference in New Issue
Block a user