about summary refs log tree commit diff
diff options
context:
space:
mode:
authornoqcks <benny@noqcks.io>2018-03-29T17·36-0400
committerVincent Ambo <github@tazj.in>2018-03-29T18·05+0200
commitac445d5235a5a5d543d4926290e7eaef6a3b40dd (patch)
tree6f0b3362fe03d918c9a2a03b7a0392227b632eb8
parente1c2c19330911d9e35b03b8b08681e0a7cd0cb70 (diff)
refactor(templater) Refactor templator to use exec.Command directly instead of executing in sh
-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
 			}