From bc62240584d63bccce790534e12641ec38bb35ad Mon Sep 17 00:00:00 2001 From: Eddy Young <jeyoung@priscimon.com> Date: Sun, 24 May 2015 04:50:07 -0400 Subject: [PATCH] Reworked NetBeans project to be based on the pom.xml rather than the build.xml. --- src/main/java/com/gitblit/utils/FileUtils.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/gitblit/utils/FileUtils.java b/src/main/java/com/gitblit/utils/FileUtils.java index 27caa7e..e7f0104 100644 --- a/src/main/java/com/gitblit/utils/FileUtils.java +++ b/src/main/java/com/gitblit/utils/FileUtils.java @@ -296,7 +296,7 @@ Path exactBase = Paths.get(getExactFile(basePath).toURI()); Path exactPath = Paths.get(getExactFile(path).toURI()); if (exactPath.startsWith(exactBase)) { - return exactBase.relativize(exactPath).toString(); + return exactBase.relativize(exactPath).toString().replace('\\', '/'); } // no relative relationship return null; -- Gitblit v1.9.1