aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/beats7/files/patch-dev-tools_mage_settings.go
blob: 8fc695560c82aa5833fd1888446f5d845f9450bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- dev-tools/mage/settings.go.orig	2021-12-17 15:54:41 UTC
+++ dev-tools/mage/settings.go
@@ -30,7 +30,6 @@ import (
 	"sync"
 	"time"
 
-	"github.com/magefile/mage/sh"
 	"github.com/pkg/errors"
 	"golang.org/x/tools/go/vcs"
 
@@ -248,7 +247,8 @@ var (
 func CommitHash() (string, error) {
 	var err error
 	commitHashOnce.Do(func() {
-		commitHash, err = sh.Output("git", "rev-parse", "HEAD")
+		err = nil
+		commitHash = "%%BEATSVERSION%%"
 	})
 	return commitHash, err
 }