mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Minor fix for #2506
This commit is contained in:
		@@ -288,20 +288,6 @@ func (repo *Repository) GetMirror() (err error) {
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (repo *Repository) GetBranch(br string) (*Branch, error) {
 | 
			
		||||
	if(!git.IsBranchExist(repo.RepoPath(), br)){
 | 
			
		||||
		return nil, fmt.Errorf("Branch does not exist: %s", br);
 | 
			
		||||
	}
 | 
			
		||||
	return &Branch{
 | 
			
		||||
			Path: repo.RepoPath(),
 | 
			
		||||
			Name: br,
 | 
			
		||||
	},nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (repo *Repository) GetBranches() ([]*Branch, error) {
 | 
			
		||||
	return GetBranchesByPath(repo.RepoPath())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (repo *Repository) GetBaseRepo() (err error) {
 | 
			
		||||
	if !repo.IsFork {
 | 
			
		||||
		return nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user