{"thread":{"id":"6478","subject":"[PATCH] git-svn: remove leading slash when printing removed directories","startedAt":"2007-01-22T20:25:30Z","lastAt":"2007-01-22T20:25:30Z","messageCount":1,"participants":["Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"32326","messageId":"1169497530189-git-send-email-normalperson@yhbt.net","threadId":"6478","inReplyTo":null,"subject":"[PATCH] git-svn: remove leading slash when printing removed directories","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-01-22T20:25:30Z","receivedAt":"2007-01-22T20:25:30Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Not sure why it was there in the first place, we always do our\nwork relative to the URL we're connected to; even if that URL is\nthe root of the repository, so the leading slash is pointless...\nLets be consistent when printing things for the user to see.\n\nSigned-off-by: Eric Wong <normalperson@yhbt.net>\n---\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex b8ede9c..83ec03d 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -2856,7 +2856,7 @@ sub rmdirs {\n \tforeach my $d (sort { $b =~ tr#/#/# <=> $a =~ tr#/#/# } keys %$rm) {\n \t\t$self->close_directory($bat->{$d}, $p);\n \t\tmy ($dn) = ($d =~ m#^(.*?)/?(?:[^/]+)$#);\n-\t\tprint \"\\tD+\\t/$d/\\n\" unless $q;\n+\t\tprint \"\\tD+\\t$d/\\n\" unless $q;\n \t\t$self->SUPER::delete_entry($d, $r, $bat->{$dn}, $p);\n \t\tdelete $bat->{$d};\n \t}\n-- \n1.5.0.rc1.g694d\n"}]}