From ac445d5235a5a5d543d4926290e7eaef6a3b40dd Mon Sep 17 00:00:00 2001 From: noqcks Date: Thu, 29 Mar 2018 13:36:39 -0400 Subject: refactor(templater) Refactor templator to use exec.Command directly instead of executing in sh --- templater/templater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templater') 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 } -- cgit 1.4.1