Skip to content

Commit 66646a3

Browse files
author
Gusted
committed
Fix partial cloning a repo (go-gitea#18373)
- Backport from: go-gitea#18373 - Backport isn't 1-1, because the frontport had a refactor in that area, which v1.16 doesn't have.
1 parent 160de9f commit 66646a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/http.go

+1
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ func serviceRPC(h serviceHandler, service string) {
494494
cmd := exec.CommandContext(ctx, git.GitExecutable, service, "--stateless-rpc", h.dir)
495495
cmd.Dir = h.dir
496496
cmd.Env = append(os.Environ(), h.environ...)
497+
cmd.Env = append(cmd.Env, git.GlobalCommandArgs...)
497498
cmd.Stdout = h.w
498499
cmd.Stdin = reqBody
499500
cmd.Stderr = &stderr

0 commit comments

Comments
 (0)