mirror of
https://github.com/gogs/gogs.git
synced 2026-07-01 00:18:37 +02:00
models/repo: fix repository files weren't cleaned up (#4167)
This commit is contained in:
@@ -1438,7 +1438,7 @@ func DeleteRepository(uid, repoID int64) error {
|
||||
}
|
||||
|
||||
// Remove repository files.
|
||||
repoPath := repo.repoPath(sess)
|
||||
repoPath := repo.RepoPath()
|
||||
RemoveAllWithNotice("Delete repository files", repoPath)
|
||||
|
||||
repo.DeleteWiki()
|
||||
|
||||
Reference in New Issue
Block a user