mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Make git.OpenRepository accept Context (#19260)
* OpenRepositoryCtx -> OpenRepository * OpenRepository -> openRepositoryWithDefaultContext, only for internal usage
This commit is contained in:
		| @@ -23,7 +23,7 @@ func TestGetLatestCommitTime(t *testing.T) { | ||||
|  | ||||
| func TestRepoIsEmpty(t *testing.T) { | ||||
| 	emptyRepo2Path := filepath.Join(testReposDir, "repo2_empty") | ||||
| 	repo, err := OpenRepository(emptyRepo2Path) | ||||
| 	repo, err := openRepositoryWithDefaultContext(emptyRepo2Path) | ||||
| 	assert.NoError(t, err) | ||||
| 	defer repo.Close() | ||||
| 	isEmpty, err := repo.IsEmpty() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user