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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user