mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 04:14:01 +01:00 
			
		
		
		
	#3467 fix clone fail when wiki is empty
This commit is contained in:
		
							parent
							
								
									61e27dedf7
								
							
						
					
					
						commit
						6c8fcb3af2
					
				@ -76,7 +76,9 @@ func (repo *Repository) LocalWikiPath() string {
 | 
			
		||||
 | 
			
		||||
// UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date.
 | 
			
		||||
func (repo *Repository) UpdateLocalWiki() error {
 | 
			
		||||
	return UpdateLocalCopyBranch(repo.WikiPath(), repo.LocalWikiPath(), "master")
 | 
			
		||||
	// Don't pass branch name here because it fails to clone and
 | 
			
		||||
	// checkout to a specific branch when wiki is an empty repository.
 | 
			
		||||
	return UpdateLocalCopyBranch(repo.WikiPath(), repo.LocalWikiPath(), "")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func discardLocalWikiChanges(localPath string) error {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user