diff --git a/main.c b/main.c index d97b157..4ffab5d 100644 --- a/main.c +++ b/main.c @@ -133,6 +133,15 @@ parse_local_repos_path(apr_getopt_t *os, } else if (svn_path_is_url(*repos_path)) { + #define URL_LOCAL_FILE_PREFIX "file://" + if (strncmp(*repos_path, URL_LOCAL_FILE_PREFIX, + strlen(URL_LOCAL_FILE_PREFIX))) + { + *repos_path = svn_dirent_internal_style(*repos_path + + strlen(URL_LOCAL_FILE_PREFIX), pool); + return SVN_NO_ERROR; + } + return svn_error_createf(SVN_ERR_CL_ARG_PARSING_ERROR, NULL, _("'%s' is an URL when it should be a path"), *repos_path);