mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Use gitrepo.Repository instead of wikipath (#35398)
Now the wikipath will not be referenced directly.
This commit is contained in:
		| @@ -229,10 +229,6 @@ func RelativePath(ownerName, repoName string) string { | ||||
| 	return strings.ToLower(ownerName) + "/" + strings.ToLower(repoName) + ".git" | ||||
| } | ||||
|  | ||||
| func RelativeWikiPath(ownerName, repoName string) string { | ||||
| 	return strings.ToLower(ownerName) + "/" + strings.ToLower(repoName) + ".wiki.git" | ||||
| } | ||||
|  | ||||
| // RelativePath should be an unix style path like username/reponame.git | ||||
| func (repo *Repository) RelativePath() string { | ||||
| 	return RelativePath(repo.OwnerName, repo.Name) | ||||
| @@ -245,12 +241,6 @@ func (sr StorageRepo) RelativePath() string { | ||||
| 	return string(sr) | ||||
| } | ||||
|  | ||||
| // WikiStorageRepo returns the storage repo for the wiki | ||||
| // The wiki repository should have the same object format as the code repository | ||||
| func (repo *Repository) WikiStorageRepo() StorageRepo { | ||||
| 	return StorageRepo(RelativeWikiPath(repo.OwnerName, repo.Name)) | ||||
| } | ||||
|  | ||||
| // SanitizedOriginalURL returns a sanitized OriginalURL | ||||
| func (repo *Repository) SanitizedOriginalURL() string { | ||||
| 	if repo.OriginalURL == "" { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user