git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: remove leading slash when printing removed directories
@ 2007-01-22 20:25 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2007-01-22 20:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Eric Wong

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>
---
 git-svn.perl |    2 +-
 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};
 	}
-- 
1.5.0.rc1.g694d

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-22 20:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-22 20:25 [PATCH] git-svn: remove leading slash when printing removed directories Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).