git-svn: fix URL canonicalization during init w/ SVN 1.7+
authorEric Wong <normalperson@yhbt.net>
Wed, 16 Mar 2016 20:14:08 +0000 (20:14 +0000)
committerEric Wong <normalperson@yhbt.net>
Wed, 16 Mar 2016 20:16:23 +0000 (20:16 +0000)
commitb557165311f7ed1b94d94a74e7ea3a6e76bbbe88
treeb3a9184cc81ad09786f4b9858bba4a5f734a2276
parent4be4d550635d25a5050c3539f8ad3be44dabfce9
git-svn: fix URL canonicalization during init w/ SVN 1.7+

URL canonicalization when full URLs are passed became broken
when using SVN::_Core::svn_dirent_canonicalize under SVN 1.7.

Ensure we canonicalize paths and URLs with appropriate functions
for each type from now on as the path/URL-agnostic
SVN::_Core::svn_path_canonicalize function is deprecated in SVN.

Tested with the following commands:

  git svn init -T svn://svn.code.sf.net/p/squirrelmail/code/trunk
  git svn init -b svn://svn.code.sf.net/p/squirrelmail/code/branches

Reported-by: Adam Dinwoodie <adam@dinwoodie.org>
  http://mid.gmane.org/20160315162344.GM29016@dinwoodie.org
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
t/t9117-git-svn-init-clone.sh