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

Re: Can someone confirm what the contents of refs/heads/master means?

From
David Copeland <davetron5000@gmail.com>
Date
Dec 8, 2008, 22:21 UTC
Message-ID
<f95d47890812081421x180ba049p6275cc7bc19eb2c@mail.gmail.com>
In-Reply-To
<20081208212636.GA6061@atjola.homenet>

Ah, that makes sense (I did another clone of another repo and did not experience this behavior, so now that all makes sense).

Thanks!
Dave
On Mon, Dec 8, 2008 at 4:26 PM, Björn Steinbrink <B.Steinbrink@gmx.de> wrote:
Show 19 quoted lines
> On 2008.12.08 11:23:46 -0800, davetron5000 wrote:
>> I'm using git-svn to interact with an SVN repo that has branches.
>>
>> After my clone via:
>>
>> git svn clone $REPO/main -T trunk -b branches -t tags
>>
>> my 'master' branch pointed to one of the branches in svn and not to
>> the main trunk. (my .git/config looked correct for svn interaction,
>> i.e. trunk pointed to the right place).
>
> Just to clear up that bit as well. when the "fetch" finishes (which is
> part of the clone process), git-svn checks if there is a master branch,
> and if not, it creates one from the last commit it created. So if your
> last svn commit was to branch XYZ and not to trunk, master will
> reference that commit on branch XYZ.
>
> Björn
>
Previous: Björn Steinbrink
Message 6 of 6 in “Can someone confirm what the contents of refs/heads/master means?”
  1. davetron5000Dec 8, 2008
  2. Peter HarrisDec 8, 2008
  3. David CopelandDec 8, 2008
  4. Peter HarrisDec 8, 2008
  5. Björn SteinbrinkDec 8, 2008
  6. David CopelandDec 8, 2008

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.