Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ecbf01

Browse files
Gustedlunny
Gusted
authored andcommittedJan 23, 2022
Fix regression (go-gitea#18363)
- Pass the Global command args into serviceRPC. - Fixes error with partial cloning.
1 parent 3349fd8 commit 3ecbf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎routers/web/repo/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ func serviceRPC(ctx gocontext.Context, h serviceHandler, service string) {
485485
}
486486

487487
var stderr bytes.Buffer
488-
cmd := git.NewCommandContextNoGlobals(h.r.Context(), service, "--stateless-rpc", h.dir)
488+
cmd := git.NewCommandContext(h.r.Context(), service, "--stateless-rpc", h.dir)
489489
cmd.SetDescription(fmt.Sprintf("%s %s %s [repo_path: %s]", git.GitExecutable, service, "--stateless-rpc", h.dir))
490490
if err := cmd.RunWithContext(&git.RunContext{
491491
Timeout: -1,

0 commit comments

Comments
 (0)
Please sign in to comment.