Don't try and percent-escape existing percent escapes in git-svn URIs
authorKevin Ballard <kevin@sb.org>
Thu, 20 Mar 2008 20:08:49 +0000 (16:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2008 06:59:12 +0000 (23:59 -0700)
commit8114da161611d6eb7cc6163aee2f5ba51ccad9f3
tree24b54a9dc2d151a6e4215e7d9eaa8248d1e026fb
parent740fdd27f0888d5c80ef6a550734bdc53febd2df
Don't try and percent-escape existing percent escapes in git-svn URIs

git-svn project names are percent-escaped ever since f5530b8
(git-svn: support for funky branch and project names over HTTP(S),
2007-11-11).

Unfortunately this breaks the scenario where the user hands git-svn an
already-escaped URI.  Fix the regexp to skip over what looks like
existing percent escapes, and test this scenario.

Signed-off-by: Kevin Ballard <kevin@sb.org>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl
t/t9120-git-svn-clone-with-percent-escapes.sh [new file with mode: 0755]