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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]