Explorar o código

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

Unknwon %!s(int64=8) %!d(string=hai) anos
pai
achega
c5b85f2733
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/repo.go

+ 1 - 1
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()