Git development
 help / color / mirror / Atom feed
* [PATCH] git-svn: avoid fetching files outside of the URL we're tracking
@ 2006-07-05 12:14 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2006-07-05 12:14 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Santi, git, Eric Wong

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>
---
 contrib/git-svn/git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/git-svn/git-svn.perl b/contrib/git-svn/git-svn.perl
index 08e36be..6d49109 100755
--- a/contrib/git-svn/git-svn.perl
+++ b/contrib/git-svn/git-svn.perl
@@ -2625,7 +2625,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;
-- 
1.4.1.ge255

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-05 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-05 12:14 [PATCH] git-svn: avoid fetching files outside of the URL we're tracking Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox