aboutsummaryrefslogtreecommitdiff
path: root/sysutils/beats95/files/patch-dev-tools_mage_settings.go
blob: 8c398d1faa21495ed4773376c4fe634073276fcd (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	2026-09-09 20:15:21 UTC
+++ dev-tools/mage/settings.go
@@ -32,7 +32,6 @@ import (
 	"sync"
 	"time"
 
-	"github.com/magefile/mage/sh"
 	"golang.org/x/text/cases"
 	"golang.org/x/text/language"
 	"gopkg.in/yaml.v3"
@@ -280,7 +279,8 @@ func CommitHash() (string, error) {
 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
 }