about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templater/templater.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/templater/templater.go b/templater/templater.go
index 89cc1cd732b5..3c8d2ccdbdfa 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -171,7 +171,7 @@ func templateFuncs(rs *context.ResourceSet) template.FuncMap {
 	}
 	m["passLookup"] = GetFromPass
 	m["gitHEAD"] = func() (string, error) {
-			out, err := exec.Command("sh", "-c", "git rev-parse HEAD").Output()
+			out, err := exec.Command("git", "rev-parse", "HEAD").Output()
 			if err != nil {
 				return "", err
 			}