Remove wrong "git.DefaultContext" (#35364)
Some checks failed
cron-translations / crowdin-pull (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled

This commit is contained in:
wxiaoguang
2025-08-28 00:31:21 +08:00
committed by GitHub
parent e837c998b7
commit 60246730b5
71 changed files with 384 additions and 476 deletions

View File

@ -20,7 +20,7 @@ func TestGetFormatPatch(t *testing.T) {
return
}
repo, err := openRepositoryWithDefaultContext(clonedPath)
repo, err := OpenRepository(t.Context(), clonedPath)
if err != nil {
assert.NoError(t, err)
return
@ -48,7 +48,7 @@ func TestGetFormatPatch(t *testing.T) {
func TestReadPatch(t *testing.T) {
// Ensure we can read the patch files
bareRepo1Path := filepath.Join(testReposDir, "repo1_bare")
repo, err := openRepositoryWithDefaultContext(bareRepo1Path)
repo, err := OpenRepository(t.Context(), bareRepo1Path)
if err != nil {
assert.NoError(t, err)
return
@ -86,7 +86,7 @@ func TestReadWritePullHead(t *testing.T) {
return
}
repo, err := openRepositoryWithDefaultContext(clonedPath)
repo, err := OpenRepository(t.Context(), clonedPath)
if err != nil {
assert.NoError(t, err)
return
@ -122,7 +122,7 @@ func TestReadWritePullHead(t *testing.T) {
func TestGetCommitFilesChanged(t *testing.T) {
bareRepo1Path := filepath.Join(testReposDir, "repo1_bare")
repo, err := openRepositoryWithDefaultContext(bareRepo1Path)
repo, err := OpenRepository(t.Context(), bareRepo1Path)
assert.NoError(t, err)
defer repo.Close()