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:
parent
13a1019c9d
commit
6c2a3c9745
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user