1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-08-30 09:28:03 +00:00

Fix env var bug in history.silentGitsh (#210)

This commit is contained in:
Shivram
2023-11-22 23:11:18 +05:30
committed by GitHub
parent 13a1019c9d
commit 6c2a3c9745

View File

@@ -69,7 +69,7 @@ func gitsh(args ...string) (out bytes.Buffer, err error) {
func silentGitsh(args ...string) (out bytes.Buffer, err error) { func silentGitsh(args ...string) (out bytes.Buffer, err error) {
cmd := exec.Command(gitpath, args...) cmd := exec.Command(gitpath, args...)
cmd.Dir = files.HyphaeDir() cmd.Dir = files.HyphaeDir()
cmd.Env = gitEnv cmd.Env = append(cmd.Environ(), gitEnv...)
b, err := cmd.CombinedOutput() b, err := cmd.CombinedOutput()
return *bytes.NewBuffer(b), err return *bytes.NewBuffer(b), err