}\r
\r
File personalRepo = new File(GitBlitSuite.REPOSITORIES, MessageFormat.format("~{0}/ticgit.git", user.username));\r
+ GitBlitSuite.close(personalRepo);\r
if (personalRepo.exists()) {\r
FileUtils.delete(personalRepo, FileUtils.RECURSIVE);\r
}\r
\r
File projectRepo = new File(GitBlitSuite.REPOSITORIES, "project/ticgit.git");\r
+ GitBlitSuite.close(projectRepo);\r
if (projectRepo.exists()) {\r
FileUtils.delete(projectRepo, FileUtils.RECURSIVE);\r
}\r
clone.setCredentialsProvider(cp);\r
Git git = clone.call();\r
\r
+ GitBlitSuite.close(personalRepo);\r
+ \r
// add a personal repository remote and a project remote\r
git.getRepository().getConfig().setString("remote", "user", "url", MessageFormat.format("{0}/git/~{1}/ticgit.git", url, user.username));\r
git.getRepository().getConfig().setString("remote", "project", "url", MessageFormat.format("{0}/git/project/ticgit.git", url));\r