Skip to content

Commit a71c56a

Browse files
committed
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.
1 parent 41cced2 commit a71c56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clientversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const std::string CLIENT_NAME("Satoshi");
4444

4545
//! git will put "#define GIT_ARCHIVE 1" on the next line inside archives. $Format:%n#define GIT_ARCHIVE 1$
4646
#ifdef GIT_ARCHIVE
47-
#define GIT_COMMIT_ID "$Format:%h$"
47+
#define GIT_COMMIT_ID "$Format:%H$"
4848
#define GIT_COMMIT_DATE "$Format:%cD$"
4949
#endif
5050

0 commit comments

Comments
 (0)