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>
Eric Wong committed
Jan 22, 2007 at 12:25 UTC
cea70cf881290741da59c2e36050c723e6c9309d
1 file changed
+1
-1
git-svn.perl
+1
-1
@@ -2856,7 +2856,7 @@ sub rmdirs {
2856
foreach my $d (sort { $b =~ tr#/#/# <=> $a =~ tr#/#/# } keys %$rm) {
2857
$self->close_directory($bat->{$d}, $p);
2858
my ($dn) = ($d =~ m#^(.*?)/?(?:[^/]+)$#);
2859
- print "\tD+\t/$d/\n" unless $q;
2859
+ print "\tD+\t$d/\n" unless $q;
2860
$self->SUPER::delete_entry($d, $r, $bat->{$dn}, $p);
2861
delete $bat->{$d};
2862
}