Browse Source

models/repo: fix repository files weren't cleaned up (#4167)

pull/4170/head
Unknwon 8 years ago
parent
commit
c5b85f2733
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      models/repo.go

2
models/repo.go

@ -1438,7 +1438,7 @@ func DeleteRepository(uid, repoID int64) error {
} }
// Remove repository files. // Remove repository files.
repoPath := repo.repoPath(sess) repoPath := repo.RepoPath()
RemoveAllWithNotice("Delete repository files", repoPath) RemoveAllWithNotice("Delete repository files", repoPath)
repo.DeleteWiki() repo.DeleteWiki()

Loading…
Cancel
Save