Re: [PATCH] clone: in protocol v2, use remote's default branch

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

 



Jonathan Tan wrote:
> > But shouldn't there at least be a corresponding "fetch" option? On init
> > we'll create head, but "git fetch --clobber-my-idea-of-HEAD-with-remote
> > ..."?
> 
> I think that it's OK for "clone" to create HEAD, but not OK for "fetch"
> to modify HEAD.

Not the local HEAD, the remote HEAD.

See my proposal to update the remote head in different scenarios:

https://lore.kernel.org/git/20201118091219.3341585-1-felipe.contreras@xxxxxxxxx/

-- 
Felipe Contreras



[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]

  Powered by Linux