code: protected String normalizePath(String repoPath)
     {
        if (repoPath.length() > 0 && repoPath.endsWith("/"))
        {
           return repoPath.substring(0, repoPath.length() - 1);
        }
  
        return repoPath;
     }
docs: Normalizes path.
  
  @param repoPath repository path
  @return normalized path.