grasp: remove apparently useless usage of syscall.SysProcAttr as it breaks windows builds.

This commit is contained in:
fiatjaf
2025-12-01 21:22:26 -03:00
parent 91548fa0a1
commit 836a0f9842
3 changed files with 0 additions and 6 deletions
-2
View File
@@ -10,7 +10,6 @@ import (
"os/exec"
"strings"
"sync"
"syscall"
"time"
"fiatjaf.com/nostr"
@@ -112,7 +111,6 @@ func (gs *GraspServer) handleGitReceivePack(
// runReceivePack executes git-receive-pack for push operations
func (gs *GraspServer) runReceivePack(w http.ResponseWriter, r *http.Request, repoPath string, bodyReader io.ReadCloser) error {
cmd := exec.Command("git", "receive-pack", "--stateless-rpc", ".")
cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
cmd.Dir = repoPath
cmd.Env = append(os.Environ(), fmt.Sprintf("GIT_PROTOCOL=%s", r.Header.Get("Git-Protocol")))