git-svn: remove redundant slashes from show-ignore
PATCH 1/1 git-svn: remove redundant slashes from show-ignore
In reply to a message not in the archiveQuoted 8 lines · Jonathan Scott Duff
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.
---
Thanks Jonathan
git-svn.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-svn.perl +1 -1
@@ -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); } }
Signature · 1 line
Eric Wong
Quoted 11 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff
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
Quoted 11 lines · Harvey Harrison
Quoted 10 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff
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.
Quoted 3 lines
Quoted 1 line
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.
Signature · 1 line
Eric Wong
Quoted 14 lines · Eric Wong
Quoted 13 lines · Harvey Harrison
Quoted 11 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff
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
Quoted 7 lines
Quoted 1 line
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.
Quoted 3 lines · Jonathan Scott Duff
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 :-)
Signature · 1 line
Eric Wong