aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-21 11:12:46 -0500
committerUnknwon <u@gogs.io>2017-02-21 11:12:46 -0500
commitc5b85f2733f6684b9efa1941d1a3f8dd2842a663 (patch)
treea1f2181243a6946f6843fa0ef485bdbba218ec09
parentba88bb5f5ff7baeda096e909b22e51f27f03b035 (diff)
models/repo: fix repository files weren't cleaned up (#4167)
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 516e1b31..f39526c3 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()