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

Re: [Q] `git fetch tag NAME' into mirror repo does not update HEAD, what to do?

From
BFBrian Foster <brian.foster@innova-card.com>
Date
Aug 12, 2010, 10:38 UTC
Message-ID
<201008121238.51983.brian.foster@innova-card.com>
In-Reply-To
<4C63B1C9.6050801@dbservice.com>
On Thursday 12 August 2010 10:33:13 Tomas Carnecky wrote:
Tom,
 Thanks for the reply, but I suspect you didn't read
 the problem correctly ....
> On 8/12/10 9:54 AM, Brian Foster wrote:
> >  Bare repository ORIG's master looks like this:
> >[ ... ] 
> >  Repository SLAVE is a mirror clone of ORIG which
NOTE.......................^^^^^^
>[ ... ] 
> Fetch only fetches commits. It doesn't update any local refs (other than
> FETCH_HEAD). If you want to switch HEAD to that new tag, use checkout.
 No, a fetch in a mirror, when fetching all the way
 to the HEAD (e.g., a simple `git fetch origin'),
 does update the branch.  (You can easily modify the
 script I included to prove this.)
>[ ... ]
> Is SLAVE a bare repo?  [ ... ]
 Yes it is bare (because it's a mirror), as per the
 description, subject, and posted script.
cheers!
	-blf-
Previous: Tomas CarneckyNext: Tomas Carnecky
Message 3 of 11 in “[Q] `git fetch tag NAME' into mirror repo does not update HEAD, what to do?”
  1. Brian FosterAug 12, 2010
  2. Tomas CarneckyAug 12, 2010
  3. Brian FosterAug 12, 2010
  4. Tomas CarneckyAug 12, 2010
  5. [SOLVED] `git fetch tag NAME' into mirror repo does not update HEAD, what to do?Brian Foster, Aug 12, 2010
  6. Tomas CarneckyAug 12, 2010
  7. Brian FosterAug 12, 2010
  8. Tomas CarneckyAug 12, 2010
  9. Brian FosterAug 13, 2010
  10. Brandon CaseyAug 12, 2010
  11. Brian FosterAug 13, 2010

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.