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

Re: how to fetch a new svn branch after clone?

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Jul 17, 2009, 16:09 UTC
Message-ID
<4A60A234.5020907@xiplink.com>
In-Reply-To
<eafc0afe0907161900k35b2dff1u5a2bfc574bb93231@mail.gmail.com>
Changsheng Jiang wrote:
> Thank Marc.
> 
> You are right, it should be the latter case with url
> http://www.example.com/project/branches/test
Hmmm, that isn't a case I mentioned in my previous email.  Are you saying that the layout is actually
	http://www.example.com/project/branches/<some branches>
	http://www.example.com/project/branches/test/<some other branches>
If that's the case I think you might be stuck.  I think git-svn can't handle that layout (with branch names under both branches/ and branches/test/).
Show 9 quoted lines
> But "git svn clone" has already added these lines to .git/config
> 
> [svn-remote "svn"]
> 	url = https://xxx.xxxx.com/svn/xxx
> 	fetch = trunk:refs/remotes/trunk
> 	branches = branches/*:refs/remotes/*
> 	tags = tags/*:refs/remotes/tags/*
> 
> And it still can not fetch new branch.
Yes.  If you had a layout that git-svn supported, you would need to add a _second_ branches line.
		M.
Previous: Changsheng JiangNext: Changsheng Jiang
Message 4 of 5 in “how to fetch a new svn branch after clone?”
  1. Changsheng JiangJul 16, 2009
  2. Marc BranchaudJul 16, 2009
  3. Changsheng JiangJul 17, 2009
  4. Marc BranchaudJul 17, 2009
  5. Changsheng JiangJul 17, 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.