@matheusbsbs / matheus-bagliano / commits / 4bbf599f7b
Fork 0

git-svn: avoid fetching files outside of the URL we're tracking

Thanks to Santi <sbejar@gmail.com> for the bug report and explanation: > /path/to/repository/project/file > /path/to/repository/project-2/file <...> > you end up with a project with the following files: > > file > -2/file Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Jul 5, 2006 at 05:14 UTC 4bbf599f7bb6bd6debb3624b27815f366b7b34a1
1 file changed +1 -1
contrib/git-svn/git-svn.perl
+1 -1
@@ -2617,7 +2617,7 @@ sub libsvn_connect {
2617 sub libsvn_get_file {
2618 my ($gui, $f, $rev) = @_;
2619 my $p = $f;
2620 - return unless ($p =~ s#^\Q$SVN_PATH\E/?##);
2620 + return unless ($p =~ s#^\Q$SVN_PATH\E/##);
2621
2622 my ($hash, $pid, $in, $out);
2623 my $pool = SVN::Pool->new;