Sfoglia il codice sorgente

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

Unknwon 7 anni fa
parent
commit
c5b85f2733
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()