From a71c56aebbd93b25fcdbc170bd8b451e52a6b4dd Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 20 Dec 2017 20:51:20 +0000 Subject: clientversion: Use full commit hash for commit-based version descriptions git keeps changing the number of digits in abbreviated hashes, resulting in the GitHub archive hash changing because we include it here. To workaround this and avoid hashes that become increasingly ambiguous later on, just include the full commit hash when building from git. This has no effect on tagged releases. --- src/clientversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientversion.cpp b/src/clientversion.cpp index b3414fdb4b..0d070c45e2 100644 --- a/src/clientversion.cpp +++ b/src/clientversion.cpp @@ -44,7 +44,7 @@ const std::string CLIENT_NAME("Satoshi"); //! git will put "#define GIT_ARCHIVE 1" on the next line inside archives. $Format:%n#define GIT_ARCHIVE 1$ #ifdef GIT_ARCHIVE -#define GIT_COMMIT_ID "$Format:%h$" +#define GIT_COMMIT_ID "$Format:%H$" #define GIT_COMMIT_DATE "$Format:%cD$" #endif -- cgit v1.2.3