* [PATCH] git-svn: allow SVN:: lib users to track the root of the repository (again)
@ 2006-11-26 1:38 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2006-11-26 1:38 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Eric Wong
I broke this again in 747fa12cef73b6ca04fffaddaad7326cf546cdea.
Thanks to merlyn for pointing this out to me on IRC.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
git-svn.perl | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 0a47b1f..de4e74a 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2919,8 +2919,12 @@ sub libsvn_fetch {
my $p = $SVN->{svn_path};
foreach my $f (keys %$paths) {
my $m = $paths->{$f}->action();
- $f =~ s#^/\Q$p\E/##;
- next if $f =~ m#^/#;
+ if (length $p) {
+ $f =~ s#^/\Q$p\E/##;
+ next if $f =~ m#^/#;
+ } else {
+ $f =~ s#^/##;
+ }
if ($m =~ /^[DR]$/) {
print "\t$m\t$f\n" unless $_q;
process_rm($gui, $last_commit, $f);
--
1.4.4.1.gf64d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-26 1:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-26 1:38 [PATCH] git-svn: allow SVN:: lib users to track the root of the repository (again) Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox