Skip to content

Commit

Permalink
feat: tweak manual build.rs version to match github
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Oct 23, 2024
1 parent 1436a33 commit 7f105f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bitwarden-wasm-internal/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ fn version_from_git_info() -> Result<String, std::io::Error> {
// Combined version
if let Some(exact) = exact_tag {
Ok(exact)
} else if &branch != "main" && &branch != "master" && &branch != "HEAD" {
Ok(format!("{rev_short} ({branch})"))
} else {
Ok(format!("{rev_short}"))
Ok(format!("{branch} ({rev_short})"))
}
}

0 comments on commit 7f105f5

Please sign in to comment.