Code

Use a relative path for SVN importing
authorChristian Biesinger <cbiesinger@web.de>
Sat, 11 Feb 2006 15:44:11 +0000 (16:44 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 12 Feb 2006 01:59:38 +0000 (17:59 -0800)
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 <cbiesinger@web.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svnimport.perl

index b6799d81ee36f041ddf3d6233d3f2fa005fea174..f17d5a27c82a31b82f066540ed40c83fc66cf91b 100755 (executable)
@@ -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;
        }