mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
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 (?).
This commit is contained in:
parent
4f06708330
commit
e0c8865a45
2
build.go
2
build.go
@ -861,7 +861,7 @@ func getReleaseVersion() (string, error) {
|
|||||||
|
|
||||||
func getGitVersion() (string, error) {
|
func getGitVersion() (string, error) {
|
||||||
// The current version as Git sees it
|
// 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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user