use full commit sha for version info

for builds in docker this is not needed, since environment variable
with commit sha already contains full version
This commit is contained in:
Dmitry Rodionov
2021-12-01 15:27:44 +03:00
committed by Dmitry Rodionov
parent f49ad33f1b
commit 2669d140f8

View File

@@ -72,5 +72,6 @@ pub mod nonblock;
use git_version::git_version;
pub const GIT_VERSION: &str = git_version!(
prefix = "git:",
fallback = concat!("git-env:", env!("GIT_VERSION"))
fallback = concat!("git-env:", env!("GIT_VERSION")),
args = ["--abbrev=40", "--always", "--dirty=-modified"] // always use full sha
);