From a91af07b3c6d60afe4fe8c23163f68172e5d2ee0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 09 2016 12:48:08 +0000 Subject: Fix deleting a project With this change we point to the right directory to remove the project from the disk --- diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index d73e14f..42d552d 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -1193,8 +1193,6 @@ def delete_repo(repo, username=None): flask.flash('Could not delete the project', 'error') repopath = os.path.join(APP.config['GIT_FOLDER'], repo.path) - if repo.is_fork: - repopath = os.path.join(APP.config['FORK_FOLDER'], repo.path) docpath = os.path.join(APP.config['DOCS_FOLDER'], repo.path) ticketpath = os.path.join(APP.config['TICKETS_FOLDER'], repo.path) requestpath = os.path.join(APP.config['REQUESTS_FOLDER'], repo.path)