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

Re: git svn --stdlayout 's little quirk.

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 22, 2011, 15:28 UTC
Message-ID
<4E52759E.3020005@drmicha.warpmail.net>
In-Reply-To
<1314025898.45043.YahooMailClassic@web29503.mail.ird.yahoo.com>
Hin-Tak Leung venit, vidit, dixit 22.08.2011 17:11:
Show 47 quoted lines
> --- On Mon, 22/8/11, Michael J Gruber <git@drmicha.warpmail.net> wrote:
> 
>> Hin-Tak Leung venit, vidit, dixit
>> 21.08.2011 11:38:
>>> --- On Sat, 20/8/11, Eric Wong <normalperson@yhbt.net>
>> wrote:
>>>
>>>>> I think I found a small bug in git 1.7.6.
>> Having
>>>> "trunk" at the end of
>>>>> the url in combination of --stdlayout is
>> wrong, but it
>>>> looks like that
>>>>> git-svn tries to cope, but doesn't go try far
>> enough:
>>>>>
>>>>> Doing this:
>>>>> ----------------
>>>>> git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/
>>>> android-quick-settings
>>>>
>>>> --stdlayout expects the "root" path of the code
>> you're
>>>> interested
>>>> in (not necessarily the SVN repository root, but
>> in this
>>>> case they
>>>> could be the same).
>>>>
>>>> Try the following instead:
>>>>
>>>> git svn clone --stdlayout \
>>>>    http://quick-settings.googlecode.com/svn
>>>> android-quick-settings
>>>
>>> I know this is the correct way - what I meant was
>> that, having "trunk" at the end is wrong but git-svn appears
>> to try to correct it automatically, but haven't quite
>> succceeded.
>>
>> It is not trying to do that at all. git-svn is trying to
>> figure out what
>> the "base path" is in an svn repo which possibly hosts
>> multiple repos,
>> and that is what the message reports.
> 
> Okay... thanks for clarifying that. Maybe it could try to be clever? Afterall, --stdlayout isn't compatible with a URL ending in "trunk" (or having 'trunk' as part of the URL). Just a suggestion.
You *could* have this layout:

foo/trunk/trunk foo/trunk/tags/v1 foo/trunk/tags/v2

That's a perfectly valid layout. The fact that it is stupidly named should not activate git-svn magic.

Michael
Previous: Hin-Tak LeungNext: Hin-Tak Leung
Message 6 of 8 in “git svn --stdlayout 's little quirk.”
  1. Hin-Tak LeungAug 20, 2011
  2. Eric WongAug 20, 2011
  3. Hin-Tak LeungAug 21, 2011
  4. Michael J GruberAug 22, 2011
  5. Hin-Tak LeungAug 22, 2011
  6. Michael J GruberAug 22, 2011
  7. Hin-Tak LeungAug 22, 2011
  8. Andreas KreyAug 23, 2011

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.