Merged #213 "Fix exception in FileTicketService when deleting a repository"
| | |
| | | security: ~ |
| | | fixes: |
| | | - Fix exception when viewing a ticket with a patchset where the integration branch does not exist (issue-521, ticket-212) |
| | | - Fix exception when deleting a repository using the FileTicketService (issue-522, ticket-213) |
| | | changes: |
| | | - Replaced Dagger with Guice (ticket-80) |
| | | - Use release name as root directory in Gitblit GO artifacts (ticket-109) |
| | |
| | | @Override |
| | | protected boolean deleteAllImpl(RepositoryModel repository) { |
| | | Repository db = repositoryManager.getRepository(repository.name); |
| | | if (db == null) { |
| | | // the tickets no longer exist because the db no longer exists |
| | | return true; |
| | | } |
| | | try { |
| | | File dir = new File(db.getDirectory(), TICKETS_PATH); |
| | | return FileUtils.delete(dir); |