From edca4248aa76020d8b966b1c484aba80df8b13fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Thu, 8 Sep 2022 18:01:27 +0200 Subject: [PATCH] Use optional env as this variable isn't defined during CI --- src/api/core/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index 094863d6..f296a3c9 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -206,7 +206,7 @@ fn config() -> Json { let domain = crate::CONFIG.domain(); Json(json!({ "version": crate::VERSION, - "gitHash": env!("GIT_REV"), + "gitHash": option_env!("GIT_REV"), "server": { "name": "Vaultwarden", "url": "https://github.com/dani-garcia/vaultwarden"