Parcourir la source

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

Unknwon il y a 7 ans
Parent
commit
c5b85f2733
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()