diff options
author | Daniel García <[email protected]> | 2021-04-28 21:46:20 +0200 |
---|---|---|
committer | Daniel García <[email protected]> | 2021-04-28 21:46:20 +0200 |
commit | 2b4dd6f137730abe48506affbe5c8f36a86772fb (patch) | |
tree | 4a543628e021a82392e6ddd33cf3ee4799d6f96b /build.rs | |
parent | 3da44a8d30e76f48b84f5b888e0b33427037037c (diff) | |
download | vaultwarden-2b4dd6f137730abe48506affbe5c8f36a86772fb.tar.gz vaultwarden-2b4dd6f137730abe48506affbe5c8f36a86772fb.zip |
Fix branch name
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |