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

git svn --stdlayout 's little quirk.

From
HLHin-Tak Leung <htl10@users.sourceforge.net>
Date
Aug 20, 2011, 17:06 UTC
Message-ID
<1313859988.60143.YahooMailClassic@web29518.mail.ird.yahoo.com>
first of all, thanks for a great tool - use it daily!
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 ----------------

Gives this message and stops: ---------------- Initialized empty Git repository in /home/Hin-Tak/tmp-git/svn-imports/android-quick-settings/.git/ Using higher level of URL: http://quick-settings.googlecode.com/svn/trunk => http://quick-settings.googlecode.com/svn ----------------

When I saw the message I thought it is striping the ending 'trunk' for my convenience, but when I look at .git/config:
--------------------
$ more .git/config 
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[svn-remote "svn"]
	url = http://quick-settings.googlecode.com/svn
	fetch = trunk/trunk:refs/remotes/trunk
	branches = trunk/branches/*:refs/remotes/*
	tags = trunk/tags/*:refs/remotes/tags/*
------------------
It is doing 'trunk/trunk', etc, which is why it stopped.
Can it either clone correctly despite the wrong instruction, or fail with a better message than 'Using higher level...' which suggests it tried?
Next: Eric Wong
Message 1 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.