1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 13:30:26 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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