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>
This commit is contained in:
parent
2718ff098a
commit
4bbf599f7b
@ -2617,7 +2617,7 @@ sub libsvn_connect {
|
|||||||
sub libsvn_get_file {
|
sub libsvn_get_file {
|
||||||
my ($gui, $f, $rev) = @_;
|
my ($gui, $f, $rev) = @_;
|
||||||
my $p = $f;
|
my $p = $f;
|
||||||
return unless ($p =~ s#^\Q$SVN_PATH\E/?##);
|
return unless ($p =~ s#^\Q$SVN_PATH\E/##);
|
||||||
|
|
||||||
my ($hash, $pid, $in, $out);
|
my ($hash, $pid, $in, $out);
|
||||||
my $pool = SVN::Pool->new;
|
my $pool = SVN::Pool->new;
|
||||||
|
Loading…
Reference in New Issue
Block a user