refactor(templater) Refactor templator to use exec.Command directly instead of executing in sh
This commit is contained in:
parent
e1c2c19330
commit
ac445d5235
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue