1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00

Inherit environment in gitsh

Fixes the bug introduced in 552aa12b8c.
This commit is contained in:
Umar Getagazov 2022-09-07 12:25:37 +03:00
parent 95a802cdf0
commit 7de805c00f

View File

@ -56,7 +56,7 @@ func gitsh(args ...string) (out bytes.Buffer, err error) {
fmt.Printf("$ %v\n", args)
cmd := exec.Command(gitpath, args...)
cmd.Dir = files.HyphaeDir()
cmd.Env = gitEnv
cmd.Env = append(cmd.Environ(), gitEnv...)
b, err := cmd.CombinedOutput()
if err != nil {