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

Re: git-svn of both trunk and tags while having no access to the 'parent' of those

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Nov 18, 2009, 13:56 UTC
Message-ID
<4B03FD29.3090001@drmicha.warpmail.net>
In-Reply-To
<20091118133205.GB17964@onerussian.com>
Yaroslav Halchenko venit, vidit, dixit 18.11.2009 14:32:
Show 13 quoted lines
> 
> On Wed, 18 Nov 2009, Michael J Gruber wrote:
> 
>>> git svn clone --prefix=upstream-svn/ -T trunk -t releases http://domain.com/svnrepo svnrepo.gitsvn
> 
>> Your problem description seems to match perfectly with the description
>> of the "--no-minimize-url" option in git svn's man page. I'm sure it's
>> worth a try.
> 
> ;-) oh I did I did ;)
> I've used
> 
> git svn clone --no-minimize-url --prefix=upstream-svn/ -T trunk -t releases  http://domain.com/svnrepo/trunk svnrepo.gitsvn
Is the trunk really at svnrepo/trunk/trunk?
Show 15 quoted lines
> that initialized repository, went through a lengthy list of 
> 
> trace: built-in: git 'config' 'svn-remote.svn.tags-maxRev' '...'
> 
> with last command reported
> 
> trace: built-in: git 'gc' '--auto'
> 
> and resulted in nothing being cloned/checked out or even a single ref.
> The only file under .git besides the ones created by git init
> 
> ./svn/refs/remotes/upstream-svn/trunk/.rev_map.33fb83da-1015-0410-9b9b-96027f9a4af8
> 
> and if I omitted trunk/ from url -- the same story of needed
> authentication
I would try both

git svn clone --no-minimize-url --prefix=upstream-svn/ -T trunk -t releases http://domain.com/svnrepo/ svnrepo.gitsvn

and also the seemingly equivalent

git svn clone --no-minimize-url --prefix=upstream-svn/ -T http://domain.com/svnrepo/trunk -t http://domain.com/svnrepo/releases svnrepo.gitsvn

Also, I assume you can svn list http://domain.com/svnrepo/trunk and http://domain.com/svnrepo/releases ;)

Michael
Previous: Yaroslav HalchenkoNext: Yaroslav Halchenko
Message 4 of 9 in “git-svn of both trunk and tags while having no access to the 'parent' of those”
  1. Yaroslav HalchenkoNov 17, 2009
  2. Michael J GruberNov 18, 2009
  3. Yaroslav HalchenkoNov 18, 2009
  4. Michael J GruberNov 18, 2009
  5. Yaroslav HalchenkoNov 18, 2009
  6. Michael J GruberNov 18, 2009
  7. Eric WongNov 19, 2009
  8. Eric WongNov 20, 2009
  9. git svn: always reuse existing remotes on fetchEric Wong, Nov 22, 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.