diff --git a/models/repo.go b/models/repo.go index 516e1b312..f39526c3c 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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()