From 5e010729291f732d4f31cbf66649dbac1e795a59 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 27 Jul 2012 21:41:26 -0400 Subject: [PATCH] Fixes to relative path determination for symlinks (issue 116) --- tests/com/gitblit/tests/GitServletTest.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/com/gitblit/tests/GitServletTest.java b/tests/com/gitblit/tests/GitServletTest.java index 2f9a9c4..848a1d0 100644 --- a/tests/com/gitblit/tests/GitServletTest.java +++ b/tests/com/gitblit/tests/GitServletTest.java @@ -42,7 +42,6 @@ @BeforeClass public static void startGitblit() throws Exception { - deleteWorkingFolders(); started.set(GitBlitSuite.startGitblit()); } @@ -50,11 +49,11 @@ public static void stopGitblit() throws Exception { if (started.get()) { GitBlitSuite.stopGitblit(); + deleteWorkingFolders(); } - deleteWorkingFolders(); } - private static void deleteWorkingFolders() throws Exception { + public static void deleteWorkingFolders() throws Exception { if (ticgitFolder.exists()) { FileUtils.delete(ticgitFolder, FileUtils.RECURSIVE); } -- Gitblit v1.9.1