aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_upload_pack.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--http_handle_repo_upload_pack.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/http_handle_repo_upload_pack.go b/http_handle_repo_upload_pack.go
index 4b75910..a19b081 100644
--- a/http_handle_repo_upload_pack.go
+++ b/http_handle_repo_upload_pack.go
@@ -3,6 +3,7 @@ package main
import (
"io"
"net/http"
+ "os"
"os/exec"
)
@@ -20,6 +21,7 @@ func handle_upload_pack(w http.ResponseWriter, r *http.Request, params map[strin
w.WriteHeader(http.StatusOK)
cmd := exec.Command("git", "upload-pack", "--stateless-rpc", repo_path)
+ cmd.Env = append(os.Environ(), "LINDENII_FORGE_HOOKS_SOCKET_PATH="+config.Hooks.Socket)
stdout, err := cmd.StdoutPipe()
if err != nil {
return err