diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-01-23 21:19:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 22:19:32 +0100 |
commit | c2e13fb763ec4764f8ebbeb25b190b48ac7b99ad (patch) | |
tree | 29572d3dcc4666afe7056847578176370897fb61 /integrations/git_test.go | |
parent | 5e5740af69cb0f44ff0c1576a2387388d75bb4c2 (diff) | |
download | gitea-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 'integrations/git_test.go')
-rw-r--r-- | integrations/git_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/integrations/git_test.go b/integrations/git_test.go index 243cca2e55..93ff9d2543 100644 --- a/integrations/git_test.go +++ b/integrations/git_test.go @@ -69,6 +69,12 @@ func testGit(t *testing.T, u *url.URL) { t.Run("Clone", doGitClone(dstPath, u)) + dstPath2, err := os.MkdirTemp("", httpContext.Reponame) + assert.NoError(t, err) + defer util.RemoveAll(dstPath2) + + t.Run("Partial Clone", doPartialGitClone(dstPath2, u)) + little, big := standardCommitAndPushTest(t, dstPath) littleLFS, bigLFS := lfsCommitAndPushTest(t, dstPath) rawTest(t, &httpContext, little, big, littleLFS, bigLFS) |