From: Christian Biesinger Date: Sat, 11 Feb 2006 15:44:11 +0000 (+0100) Subject: Use a relative path for SVN importing X-Git-Tag: v1.2.0~15 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7bbdeaa969794edd67cd4a1ed09b9a057b6af4c3;p=git.git Use a relative path for SVN importing The absolute path (with the leading slash) breaks SVN importing, because it then looks for /trunk/... instead of /svn/trunk/... (in my case, the repository URL was https://servername/svn/) Signed-off-by: Christian Biesinger Signed-off-by: Junio C Hamano --- diff --git a/git-svnimport.perl b/git-svnimport.perl index b6799d81..f17d5a27 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -318,7 +318,7 @@ sub get_file($$$) { die $res->status_line." at $url\n"; } } else { - $name = $svn->file("/$svnpath",$rev); + $name = $svn->file("$svnpath",$rev); return undef unless defined $name; }