mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make git.OpenRepository accept Context (#19260)
* OpenRepositoryCtx -> OpenRepository * OpenRepository -> openRepositoryWithDefaultContext, only for internal usage
This commit is contained in:
		@@ -123,7 +123,7 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r
 | 
			
		||||
	repo.IsEmpty = false
 | 
			
		||||
 | 
			
		||||
	// Don't bother looking this repo in the context it won't be there
 | 
			
		||||
	gitRepo, err := git.OpenRepositoryCtx(ctx, repo.RepoPath())
 | 
			
		||||
	gitRepo, err := git.OpenRepository(ctx, repo.RepoPath())
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("openRepository: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user