@@ -16,6 +16,7 @@ r27: { | |||
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) |
@@ -493,6 +493,10 @@ public class FileTicketService extends ITicketService { | |||
@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); |