mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 00:02:59 -04:00 
			
		
		
		
	
							parent
							
								
									cd5a44d973
								
							
						
					
					
						commit
						d171cd41b1
					
				| @ -47,7 +47,7 @@ func DeleteRepoFile(repo *models.Repository, doer *models.User, opts *DeleteRepo | ||||
| 	// If we aren't branching to a new branch, make sure user can commit to the given branch | ||||
| 	if opts.NewBranch != opts.OldBranch { | ||||
| 		newBranch, err := repo_module.GetBranch(repo, opts.NewBranch) | ||||
| 		if git.IsErrNotExist(err) { | ||||
| 		if err != nil && !git.IsErrBranchNotExist(err) { | ||||
| 			return nil, err | ||||
| 		} | ||||
| 		if newBranch != nil { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user