summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f64d7fd)
raw | patch | inline | side by side (parent: f64d7fd)
author | Eric Wong <normalperson@yhbt.net> | |
Sun, 26 Nov 2006 01:38:41 +0000 (17:38 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Nov 2006 03:59:32 +0000 (19:59 -0800) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Thanks to merlyn for pointing this out to me on IRC.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 0a47b1f9fd4bfcbfabb41433049ab7a1361dd449..de4e74a60d58500d175eeb15968e1579a9874c60 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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);