Thread (1 message) 1 message, 1 author, 2021-04-13

Re: `git fetch` not updating 'origin/HEAD' after branch rename

From: Junio C Hamano <hidden>
Date: 2021-04-13 21:22:51

Andreas Schwab [off-list ref] writes:
On Apr 13 2021, Junio C Hamano wrote:
quoted
It may also be
possible to add "git fetch --reset-remote-tracking-HEAD" option to
make "fetch" overwrite existing origin/HEAD but somebody has to
propose such a change, argue for its benefit and get it accepted by
the community.
Isn't that what git remote set-head origin -a does?
Yes, but the point is to do so when fetch is run (i.e. it talks with
the other side not just to learn which branch their HEAD points at,
but it actually does the fetching of new history on branches).  And
it might open the door to add a configuration to tell "fetch" to do
so unconditionally, if it turns out to be useful enough.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help