Skip to content

Commit

Permalink
Fix partial cloning a repo (go-gitea#18373)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Gusted committed Jan 23, 2022
1 parent 160de9f commit 66646a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/web/repo/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ func serviceRPC(h serviceHandler, service string) {
cmd := exec.CommandContext(ctx, git.GitExecutable, service, "--stateless-rpc", h.dir)
cmd.Dir = h.dir
cmd.Env = append(os.Environ(), h.environ...)
cmd.Env = append(cmd.Env, git.GlobalCommandArgs...)
cmd.Stdout = h.w
cmd.Stdin = reqBody
cmd.Stderr = &stderr
Expand Down

0 comments on commit 66646a3

Please sign in to comment.