opnsense-ports/devel/mage/files/patch-magefile.go
Franco Fichtner f0ac9401ff */*: sync with upstream
Taken from: HardenedBSD
2018-04-23 07:02:47 +02:00

17 lines
488 B
Go

--- magefile.go.orig 2018-04-11 17:03:07 UTC
+++ magefile.go
@@ -83,12 +83,14 @@ func flags() (string, error) {
// tag returns the git tag for the current branch or "" if none.
func tag() string {
+ return "%%GH_TAGNAME%%"
s, _ := sh.Output("git", "describe", "--tags")
return s
}
// hash returns the git hash for the current repo or "" if none.
func hash() string {
+ return "%%GH_TAG_COMMIT%%"
hash, _ := sh.Output("git", "rev-parse", "--short", "HEAD")
return hash
}