Commit 8be8617b authored by Alex Lossent's avatar Alex Lossent

Pass LD_LIBRARY_PATH to the git command

parent 2fed6af6
...@@ -30,6 +30,7 @@ func gitCommand(gl_id string, name string, args ...string) *exec.Cmd { ...@@ -30,6 +30,7 @@ func gitCommand(gl_id string, name string, args ...string) *exec.Cmd {
// Explicitly set the environment for the Git command // Explicitly set the environment for the Git command
cmd.Env = []string{ cmd.Env = []string{
fmt.Sprintf("PATH=%s", os.Getenv("PATH")), fmt.Sprintf("PATH=%s", os.Getenv("PATH")),
fmt.Sprintf("LD_LIBRARY_PATH=%s", os.Getenv("LD_LIBRARY_PATH")),
fmt.Sprintf("GL_ID=%s", gl_id), fmt.Sprintf("GL_ID=%s", gl_id),
} }
// If we don't do something with cmd.Stderr, Git errors will be lost // If we don't do something with cmd.Stderr, Git errors will be lost
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment