aboutsummaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2020-06-26 09:02:35 +0200
committerJakob Borg <jakob@kastelo.net>2020-06-26 09:02:35 +0200
commite0c8865a45051e147b3014505a11e997a0cf04ee (patch)
tree257e78788b0534efa42551a11c09719004158ca2 /build.go
parent4f067083306f7ed413fe24823bcf327275daaab5 (diff)
downloadsyncthing-e0c8865a45051e147b3014505a11e997a0cf04ee.tar.gz
syncthing-e0c8865a45051e147b3014505a11e997a0cf04ee.zip
build: Consistently use 8 hash digits in git describe
This might otherwise differ between builds depending on branches present in the repository and the Git version in use (?).
Diffstat (limited to 'build.go')
-rw-r--r--build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.go b/build.go
index 621526e5a..c0acd8cf0 100644
--- a/build.go
+++ b/build.go
@@ -861,7 +861,7 @@ func getReleaseVersion() (string, error) {
func getGitVersion() (string, error) {
// The current version as Git sees it
- bs, err := runError("git", "describe", "--always", "--dirty")
+ bs, err := runError("git", "describe", "--always", "--dirty", "--abbrev=8")
if err != nil {
return "", err
}