refactor(templater) Refactor templator to use exec.Command directly instead of executing in sh

This commit is contained in:
noqcks 2018-03-29 13:36:39 -04:00 committed by Vincent Ambo
parent e1c2c19330
commit ac445d5235

View file

@ -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
}