|
|
@@ -9,6 +9,7 @@ import ( |
|
|
|
"bytes" |
|
|
|
"compress/gzip" |
|
|
|
gocontext "context" |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
|
"io/ioutil" |
|
|
|
"net/http" |
|
|
@@ -559,6 +560,10 @@ func serviceRPC(h serviceHandler, service string) { |
|
|
|
if service == "receive-pack" { |
|
|
|
cmd.Env = append(os.Environ(), h.environ...) |
|
|
|
} |
|
|
|
|
|
|
|
envJson, _ := json.Marshal(cmd.Env) |
|
|
|
//log.Info(accuracyJson=” + string(accuracyJson)) |
|
|
|
log.Info("env=" + string(envJson)) |
|
|
|
cmd.Stdout = h.w |
|
|
|
cmd.Stdin = reqBody |
|
|
|
cmd.Stderr = &stderr |
|
|
|