From: Eric Wong Date: Mon, 22 Jan 2007 20:25:30 +0000 (-0800) Subject: git-svn: remove leading slash when printing removed directories X-Git-Tag: v1.5.0-rc3~81 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cea70cf881290741da59c2e36050c723e6c9309d;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index b8ede9cba..83ec03d47 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}; }