Include git info into docker build, show git ref at version (#3829)
* ci: include .git directory into build * p2p: include git ref into version for user agent, show git commit hash instead of last tag into log * p2p: do not show anything after version if git commit hash is empty * fix: user agent typo
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ pub fn info_strings() -> (String, String) {
|
||||
format!(
|
||||
"This is Grin version {}{}, built for {} by {}.",
|
||||
built_info::PKG_VERSION,
|
||||
built_info::GIT_VERSION.map_or_else(|| "".to_owned(), |v| format!(" (git {})", v)),
|
||||
built_info::GIT_COMMIT_HASH.map_or_else(|| "".to_owned(), |v| format!(" (git {})", v)),
|
||||
built_info::TARGET,
|
||||
built_info::RUSTC_VERSION,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user