aboutsummaryrefslogtreecommitdiff
path: root/src/clientversion.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-12-20 20:51:20 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-12-20 20:53:38 +0000
commita71c56aebbd93b25fcdbc170bd8b451e52a6b4dd (patch)
tree99536062f42e316bbbcd8cc40fbd74926d0a38e3 /src/clientversion.cpp
parent41cced21063a89992ef393dda4fffc44ff60c7c3 (diff)
downloadbitcoin-a71c56aebbd93b25fcdbc170bd8b451e52a6b4dd.tar.xz
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.
Diffstat (limited to 'src/clientversion.cpp')
-rw-r--r--src/clientversion.cpp2
1 files changed, 1 insertions, 1 deletions
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