diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2017-12-20 20:51:20 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2017-12-20 20:53:38 +0000 |
commit | a71c56aebbd93b25fcdbc170bd8b451e52a6b4dd (patch) | |
tree | 99536062f42e316bbbcd8cc40fbd74926d0a38e3 /src | |
parent | 41cced21063a89992ef393dda4fffc44ff60c7c3 (diff) |
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')
-rw-r--r-- | src/clientversion.cpp | 2 |
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 |