summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2021-04-28 21:46:20 +0200
committerDaniel García <[email protected]>2021-04-28 21:46:20 +0200
commit2b4dd6f137730abe48506affbe5c8f36a86772fb (patch)
tree4a543628e021a82392e6ddd33cf3ee4799d6f96b /build.rs
parent3da44a8d30e76f48b84f5b888e0b33427037037c (diff)
downloadvaultwarden-2b4dd6f137730abe48506affbe5c8f36a86772fb.tar.gz
vaultwarden-2b4dd6f137730abe48506affbe5c8f36a86772fb.zip
Fix branch name
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index bce425e8..39c16095 100644
--- a/build.rs
+++ b/build.rs
@@ -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)