James Moger
2011-06-07 16856603ec575718857768e2d18e455c95fd6ea4
src/com/gitblit/utils/StringUtils.java
@@ -134,4 +134,12 @@
      }
      return "";
   }
   public static String getRelativePath(String basePath, String fullPath) {
      String relativePath = fullPath.substring(basePath.length()).replace('\\', '/');
      if (relativePath.charAt(0) == '/') {
         relativePath = relativePath.substring(1);
      }
      return relativePath;
   }
}