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

Re: git-svn branch naming question

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Dec 9, 2007, 19:36 UTC
Message-ID
<20071209193633.GR3199@genesis.frugalware.org>
In-Reply-To
<20071209032608.GB31033@soma>
On Sat, Dec 08, 2007 at 07:26:08PM -0800, Eric Wong <normalperson@yhbt.net> wrote:
> Perhaps git-clone could gain the ability to clone refs/remotes/ as-is
> without an extra step?

well, what i did for now is to use 2 repos. i use git-svn to create a regular git-svn repo from svn, then an other one to create a regular git repo from the git-svn one. this has one benefit: git-svn requires a working tree, but i definitely want to publish only a bare repo. so here is what i have in the bare repo's config:

[remote "origin"]
        url = /path/to/git-svn/repo
        fetch = +refs/remotes/origin/tags/*:refs/tags/*
        fetch = +refs/remotes/origin/trunk:refs/heads/master
        fetch = +refs/remotes/origin/*:refs/heads/*

then a simple git fetch will do what i need. i'm not entirely sure this is the right think to do, but works for me :)

thanks,
- VMiklos
Previous: Harvey Harrison
Message 13 of 13 in “git-svn branch naming question”
  1. Miklos VajnaDec 8, 2007
  2. Peter BaumannDec 8, 2007
  3. Miklos VajnaDec 8, 2007
  4. Peter BaumannDec 8, 2007
  5. Miklos VajnaDec 8, 2007
  6. Miklos VajnaDec 9, 2007
  7. Björn SteinbrinkDec 9, 2007
  8. Miklos VajnaDec 9, 2007
  9. Eric WongDec 9, 2007
  10. Miklos VajnaDec 9, 2007
  11. Eric WongDec 9, 2007
  12. Harvey HarrisonDec 9, 2007
  13. Miklos VajnaDec 9, 2007

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.