summaryrefslogtreecommitdiffstats
path: root/modules/git/diff.go
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-01-23 21:19:32 +0000
committerGitHub <noreply@github.com>2022-01-23 22:19:32 +0100
commitc2e13fb763ec4764f8ebbeb25b190b48ac7b99ad (patch)
tree29572d3dcc4666afe7056847578176370897fb61 /modules/git/diff.go
parent5e5740af69cb0f44ff0c1576a2387388d75bb4c2 (diff)
downloadgitea-c2e13fb763ec4764f8ebbeb25b190b48ac7b99ad.tar.gz
gitea-c2e13fb763ec4764f8ebbeb25b190b48ac7b99ad.zip
Fix partial cloning a repo (#18373)
- Pass the Global command args into serviceRPC. - Fixes error with partial cloning. - Add partial clone test - Include diff Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/git/diff.go')
-rw-r--r--modules/git/diff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/diff.go b/modules/git/diff.go
index 38aefabf1a..4723898e37 100644
--- a/modules/git/diff.go
+++ b/modules/git/diff.go
@@ -81,7 +81,7 @@ func GetRepoRawDiffForFile(repo *Repository, startCommit, endCommit string, diff
}
stderr := new(bytes.Buffer)
- cmd := NewCommandContextNoGlobals(repo.Ctx, args...)
+ cmd := NewCommandContext(repo.Ctx, args...)
if err = cmd.RunWithContext(&RunContext{
Timeout: -1,
Dir: repo.Path,