summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-22 20:25:30 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-22 21:15:50 (GMT)
commitcea70cf881290741da59c2e36050c723e6c9309d (patch)
tree0e7b698ed0c00f45bfc1dc9c42acd77c56c3ffa6 /git-svn.perl
parent8276c0070f8f8959ab4b6ec458fa0740e9abda9e (diff)
downloadgit-cea70cf881290741da59c2e36050c723e6c9309d.zip
git-cea70cf881290741da59c2e36050c723e6c9309d.tar.gz
git-cea70cf881290741da59c2e36050c723e6c9309d.tar.bz2
git-svn: remove leading slash when printing removed directories
Not sure why it was there in the first place, we always do our work relative to the URL we're connected to; even if that URL is the root of the repository, so the leading slash is pointless... Lets be consistent when printing things for the user to see. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index b8ede9c..83ec03d 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2856,7 +2856,7 @@ sub rmdirs {
foreach my $d (sort { $b =~ tr#/#/# <=> $a =~ tr#/#/# } keys %$rm) {
$self->close_directory($bat->{$d}, $p);
my ($dn) = ($d =~ m#^(.*?)/?(?:[^/]+)$#);
- print "\tD+\t/$d/\n" unless $q;
+ print "\tD+\t$d/\n" unless $q;
$self->SUPER::delete_entry($d, $r, $bat->{$dn}, $p);
delete $bat->{$d};
}