James Moger
2011-05-19 9da97003c7f33a64ae5060f413f9c4c5d26efe78
src/com/gitblit/utils/StringUtils.java
@@ -5,8 +5,9 @@
import java.security.NoSuchAlgorithmException;
import java.util.List;
public class StringUtils {
   public static boolean isEmpty(String value) {
      return value == null || value.trim().length() == 0;
   }
@@ -106,5 +107,11 @@
         throw new RuntimeException(t);
      }
   }
   public static String getRootPath(String path) {
      if (path.indexOf('/') > -1) {
         return path.substring(0, path.indexOf('/'));
      }
      return "";
   }
}