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

Re: [bug][bisected] git-svn with root branches

From
EWEric Wong <normalperson@yhbt.net>
Date
Oct 23, 2009, 06:38 UTC
Message-ID
<20091023063815.GA15445@dcvr.yhbt.net>
In-Reply-To
<c376da900910220824g2948dc2sa1156bda59b49405@mail.gmail.com>
Adam Brewster <adambrewster@gmail.com> wrote:
Show 13 quoted lines
> > I'm not sure why Adam decided the leading slash needed to be removed for
> > the git refspec.  That said, the globbing/branching code still makes me
> > want to hide under a rock and I'm generally afraid to touch it.
> > I'll wait for Adam to chime in since he's braver than I am :)
> >
> How's this for brave:  I'm not sure why I did that either.
> 
> Looking at it again it seems correct for the leading / to be ignored because
> it has no meaning.  What's the difference between the above config and
> "branches = *:refs/remotes/*" (besides the fact that one works and one
> doesn't)?  In both cases I think I've asked for all of the top-level
> directories to be branches.  But that has nothing to do with the rest of the
> patch, so it shouldn't have been included.
<snip>
Show 5 quoted lines
> That is, continue disregard the / on the actual input because it means
> nothing, and add a / in places where the code will crash if it's not there.
> Even better would be to find out _why_ $path and $local_ref need a leading /
> and fix it that way, but that's more work that I don't have time for right
> now.

Actually, SVN 1.5+ does not like the leading "/" and trips on an assertion failure on all cases except a standalone "/". That is, "/*" continues to work since we send "/" to SVN::Ra::get_log().

-- 
Eric Wong
Previous: Eric Wong
Message 7 of 7 in “[bug][bisected] git-svn with root branches”
  1. Daniel CorderoOct 21, 2009
  2. Eric WongOct 22, 2009
  3. git svn: fix fetch where glob is on the top-level URLEric Wong, Oct 23, 2009
  4. Eric WongOct 23, 2009
  5. Eric WongOct 23, 2009
  6. Eric WongOct 22, 2009
  7. Eric WongOct 23, 2009

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.