Subject: Re: [PATCH] remote: add --set-head option to 'git remote add'

From: Harald Nordgren <[email-masked]>
Date: Sun, 26 Apr 2026 10:21:06 +0200

> It already does, doesn't it? Doing:
> 
>   $ git init
>   $ git remote add --fetch origin /path/to/some/repo
>   $ git for-each-ref
> 
> shows an origin/HEAD link.
> 
> Which I think is not too surprising, as it is just calling "git fetch"
> under the hood.

I think you are right! So maybe all of this new code is not needed at all.

Harald