aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel GarcĂ­a <[email protected]>2023-07-05 18:45:08 +0200
committerGitHub <[email protected]>2023-07-05 18:45:08 +0200
commit4826ddca4c69356ce9e88c59cb5c424d7c9d5ca3 (patch)
treee75d13d5a72093f6e955d45b102d3bc16554978c
parenta6cfdddfd8c2711fce850ea8e9038ad0a62f83a3 (diff)
parent2b32b6f78c24c4e0f85b18818013feddd75c5bde (diff)
downloadvaultwarden-4826ddca4c69356ce9e88c59cb5c424d7c9d5ca3.tar.gz
vaultwarden-4826ddca4c69356ce9e88c59cb5c424d7c9d5ca3.zip
Merge pull request #3651 from tessus/fix/branch-on-HEAD
fix version when compiled at a specific commit
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 1b171fb4..e9593265 100644
--- a/build.rs
+++ b/build.rs
@@ -72,7 +72,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" {
+ } else if &branch != "main" && &branch != "master" && &branch != "HEAD" {
Ok(format!("{last_tag}-{rev_short} ({branch})"))
} else {
Ok(format!("{last_tag}-{rev_short}"))