git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Breakage caused by 2fe403e7 git-svn.perl: workaround assertions in svn library 1.5.0

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jul 16, 2008, 13:45 UTC
Message-ID
<20080716134510.GA6831@neumann>
In-Reply-To
<6583867F-ED86-4E3D-AE8B-39FB974C43D7@sb.org>
Hi,
On Tue, Jul 08, 2008 at 05:41:48PM -0700, Kevin Ballard wrote:
Show 8 quoted lines
> Commit 2fe403e7 causes `git svn info` and `git svn info .` to break.
>
>   Use of uninitialized value in localtime at /usr/local/libexec/git- 
> core/git-svn line 4277.
>   No such file or directory at /usr/local/libexec/git-core/git-svn line 
> 897.
>
> If it makes a difference, I have svn 1.4.4 installed, not svn 1.5.
the same problem here, except that I have svn v1.4.6.

The patch in question adds the following line to git-svn.perl's canonicalize_path():

+       $path =~ s#^\.$##;

which makes an empty string from the path ".". This is especially unfortunate for 'git svn info', cmd_info() begins with

        my $path = canonicalize_path(shift or ".");

and from that point everything is ruined, but it boils out only when it tries to actually open() the empty path.

Removing the mentioned line from canonicalize_path() does resolve this issue on svn v1.4.6, but I'm afraid it will brake again on svn v1.5.

Gábor
Previous: Kevin Ballard
Message 2 of 2 in “Breakage caused by 2fe403e7 git-svn.perl: workaround assertions in svn library 1.5.0”
  1. Kevin BallardJul 9, 2008
  2. SZEDER GáborJul 16, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.