Fix branch name

This commit is contained in:
Daniel García
2021-04-28 21:46:20 +02:00
parent 3da44a8d30
commit 2b4dd6f137
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ fn read_git_info() -> Result<(), std::io::Error> {
// Combined version
let version = if let Some(exact) = exact_tag {
exact
} else if &branch != "master" {
} else if &branch != "main" && &branch != "master" {
format!("{}-{} ({})", last_tag, rev_short, branch)
} else {
format!("{}-{}", last_tag, rev_short)