From: Eric Wong <normalperson@yhbt.net>
To: Gerrit Pape <pape@smarden.org>, Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH/rfc] git-svn.perl: workaround assertions in svn library 1.5.0
Date: Mon, 7 Jul 2008 02:06:05 -0700 [thread overview]
Message-ID: <20080707090605.GA20731@untitled> (raw)
In-Reply-To: <20080706192850.32547.qmail@4480698c45f1ed.315fe32.mid.smarden.org>
Gerrit Pape <pape@smarden.org> wrote:
> With subversion 1.5.0 (C and perl libraries) the git-svn selftest
> t9101-git-svn-props.sh fails at test 25 and 26. The following commands
> cause assertions in the svn library
>
> $ cd deeply
> $ git-svn propget svn:ignore .
> perl: /build/buildd/subversion-1.5.0dfsg1/subversion/libsvn_ra/ra_loader.c:674: svn_ra_get_dir: Assertion `*path != '/'' failed.
> Aborted
>
> $ git-svn propget svn:ignore ..
> perl: /build/buildd/subversion-1.5.0dfsg1/subversion/libsvn_subr/path.c:120: svn_path_join: Assertion `is_canonical(component, clen)' failed.
>
> With this commit, git-svn makes sure the path doesn't start with a
> slash, and is not a dot, working around these assertions.
>
> The breakage was reported by Lucas Nussbaum through
> http://bugs.debian.org/489108
>
> Signed-off-by: Gerrit Pape <pape@smarden.org>
Thanks Gerrit,
This works with svn 1.4.3 here
Acked-by: Eric Wong <normalperson@yhbt.net>
> ---
> git-svn.perl | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> I ran into this on Debian/unstable. With svn 1.5.0 the selftest fails
> without the patch, with svn 1.4.6 it succeeds with and without the
> patch. I'm not familar with the svn interfaces, not sure whether this
> is a regression in subversion, or a bug in git-svn.
>
>
> diff --git a/git-svn.perl b/git-svn.perl
> index f789a6e..a366c89 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -643,6 +643,8 @@ sub canonicalize_path {
> $path =~ s#/[^/]+/\.\.##g;
> $path =~ s#/$##g;
> $path =~ s#^\./## if $dot_slash_added;
> + $path =~ s#^/##;
> + $path =~ s#^\.$##;
> return $path;
> }
>
> --
> 1.5.6
next prev parent reply other threads:[~2008-07-07 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-06 19:28 [PATCH/rfc] git-svn.perl: workaround assertions in svn library 1.5.0 Gerrit Pape
2008-07-07 9:06 ` Eric Wong [this message]
2008-07-17 14:08 ` Gerrit Pape
2008-07-17 18:37 ` Dmitry Potapov
2008-07-20 1:27 ` Junio C Hamano
2008-07-20 20:14 ` Dmitry Potapov
2008-07-21 1:29 ` Eric Wong
2008-07-21 1:54 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080707090605.GA20731@untitled \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pape@smarden.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.