Ver Fonte

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

Unknwon há 7 anos atrás
pai
commit
c5b85f2733
1 ficheiros alterados com 1 adições e 1 exclusões
  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()