Browse Source

Merge pull request #2604 from joshfng/fix-wiki-transfer

Remove local wiki copy on repo transfer. Fixes #2558
for-closed-social
Unknwon 8 years ago
parent
commit
600d8edaca
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/repo.go

+ 1
- 0
models/repo.go View File

@ -1103,6 +1103,7 @@ func TransferOwnership(u *User, newOwnerName string, repo *Repository) error {
wikiPath := WikiPath(owner.Name, repo.Name)
if com.IsExist(wikiPath) {
RemoveAllWithNotice("Delete repository wiki local copy", repo.LocalWikiPath())
if err = os.Rename(wikiPath, WikiPath(newOwner.Name, repo.Name)); err != nil {
return fmt.Errorf("rename repository wiki: %v", err)
}

Loading…
Cancel
Save