aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-05 05:14:00 -0700
committerJunio C Hamano <junkio@cox.net>2006-07-05 16:17:47 -0700
commit4bbf599f7bb6bd6debb3624b27815f366b7b34a1 (patch)
treef838c2a08e61239a1daa661c37db5c175226819d /contrib
parent2718ff098a1cd1bf48fc230164259b56e3e7178f (diff)
downloadgit-4bbf599f7bb6bd6debb3624b27815f366b7b34a1.tar.gz
git-4bbf599f7bb6bd6debb3624b27815f366b7b34a1.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/git-svn/git-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/git-svn/git-svn.perl b/contrib/git-svn/git-svn.perl
index 1e19aa19b..8bc4188e0 100755
--- a/contrib/git-svn/git-svn.perl
+++ b/contrib/git-svn/git-svn.perl
@@ -2617,7 +2617,7 @@ sub libsvn_connect {
sub libsvn_get_file {
my ($gui, $f, $rev) = @_;
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 $pool = SVN::Pool->new;