git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: remove redundant slashes from show-ignore
       [not found] <b762bfda0803291340ta70ee88k8d5d7c7e384e41e0@mail.gmail.com>
@ 2008-03-29 23:37 ` Eric Wong
  2008-03-29 23:47   ` Harvey Harrison
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2008-03-29 23:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Jonathan Scott Duff wrote:
> Recently I tried "git svn showignore" on my parrot repository and it
> failed.  I tracked it down to the prop_walk() sub.  When it recurses,
> $path has an extra / on the beginning (i.e., when it recurses, it
> tries to get the props for "//apps" instead of "/apps").   I *think*
> this is because $path is used in the recursive call rather than $p
> (which seems to contain a properly transformed $path).  Anyway, I've
> attached a patch that works for me and I think is generally the right
> thing.

Patch-submitted-by: Jonathan Scott Duff
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---

 Thanks Jonathan

 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index 073471f..bc0c22c 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1903,7 +1903,7 @@ sub prop_walk {
 
 	foreach (sort keys %$dirent) {
 		next if $dirent->{$_}->{kind} != $SVN::Node::dir;
-		$self->prop_walk($path . '/' . $_, $rev, $sub);
+		$self->prop_walk($p . $_, $rev, $sub);
 	}
 }
 
-- 
Eric Wong

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-svn: remove redundant slashes from show-ignore
  2008-03-29 23:37 ` [PATCH] git-svn: remove redundant slashes from show-ignore Eric Wong
@ 2008-03-29 23:47   ` Harvey Harrison
  2008-03-30  1:36     ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Harvey Harrison @ 2008-03-29 23:47 UTC (permalink / raw)
  To: Eric Wong; +Cc: Junio C Hamano, git

On Sat, 2008-03-29 at 16:37 -0700, Eric Wong wrote:
> Jonathan Scott Duff wrote:
> > Recently I tried "git svn showignore" on my parrot repository and it
> > failed.  I tracked it down to the prop_walk() sub.  When it recurses,
> > $path has an extra / on the beginning (i.e., when it recurses, it
> > tries to get the props for "//apps" instead of "/apps").   I *think*
> > this is because $path is used in the recursive call rather than $p
> > (which seems to contain a properly transformed $path).  Anyway, I've
> > attached a patch that works for me and I think is generally the right
> > thing.
> 
> Patch-submitted-by: Jonathan Scott Duff

Shouldn't that be Signed-off-by?

Cheers,

Harvey

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-svn: remove redundant slashes from show-ignore
  2008-03-29 23:47   ` Harvey Harrison
@ 2008-03-30  1:36     ` Eric Wong
  2008-03-31  6:26       ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2008-03-30  1:36 UTC (permalink / raw)
  To: Harvey Harrison; +Cc: Junio C Hamano, git

Harvey Harrison <harvey.harrison@gmail.com> wrote:
> On Sat, 2008-03-29 at 16:37 -0700, Eric Wong wrote:
> > Jonathan Scott Duff wrote:
> > > Recently I tried "git svn showignore" on my parrot repository and it
> > > failed.  I tracked it down to the prop_walk() sub.  When it recurses,
> > > $path has an extra / on the beginning (i.e., when it recurses, it
> > > tries to get the props for "//apps" instead of "/apps").   I *think*
> > > this is because $path is used in the recursive call rather than $p
> > > (which seems to contain a properly transformed $path).  Anyway, I've
> > > attached a patch that works for me and I think is generally the right
> > > thing.
> > 
> > Patch-submitted-by: Jonathan Scott Duff
> 
> Shouldn't that be Signed-off-by?

I'm not sure what the proper protocol for this should be,
as Jonathan emailed the patch to me privately without a sign-off...

[1] - Out of respect for his privacy, I'm only Bcc-ing him to avoid
  putting his address on the list.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-svn: remove redundant slashes from show-ignore
  2008-03-30  1:36     ` Eric Wong
@ 2008-03-31  6:26       ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2008-03-31  6:26 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Harvey Harrison, git

Eric Wong <normalperson@yhbt.net> wrote:
> Harvey Harrison <harvey.harrison@gmail.com> wrote:
> > On Sat, 2008-03-29 at 16:37 -0700, Eric Wong wrote:
> > > Jonathan Scott Duff wrote:
> > > > Recently I tried "git svn showignore" on my parrot repository and it
> > > > failed.  I tracked it down to the prop_walk() sub.  When it recurses,
> > > > $path has an extra / on the beginning (i.e., when it recurses, it
> > > > tries to get the props for "//apps" instead of "/apps").   I *think*
> > > > this is because $path is used in the recursive call rather than $p
> > > > (which seems to contain a properly transformed $path).  Anyway, I've
> > > > attached a patch that works for me and I think is generally the right
> > > > thing.
> > > 
> > > Patch-submitted-by: Jonathan Scott Duff
> > 
> > Shouldn't that be Signed-off-by?
> 
> I'm not sure what the proper protocol for this should be,
> as Jonathan emailed the patch to me privately without a sign-off...
> 
> [1] - Out of respect for his privacy, I'm only Bcc-ing him to avoid
>   putting his address on the list.

Signed-off-by: Jonathan Scott Duff

Jonathan Scott Duff wrote:
> Er ... yeah.  I've very new to git (long time svn user though) so I don't
> know what the cultural norms are here.  So if I need to "sign off" on the
> patch, consider it signed off :-)

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-31  6:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b762bfda0803291340ta70ee88k8d5d7c7e384e41e0@mail.gmail.com>
2008-03-29 23:37 ` [PATCH] git-svn: remove redundant slashes from show-ignore Eric Wong
2008-03-29 23:47   ` Harvey Harrison
2008-03-30  1:36     ` Eric Wong
2008-03-31  6:26       ` 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).