Re: [PATCH] remote: add --set-head option to 'git remote add'
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Apr 26, 2026, 08:21 UTC
- Message-ID
- <20260426082106.11266-1-haraldnordgren@gmail.com>
- In-Reply-To
- <20260425220629.GA28590@coredump.intra.peff.net>
Show 10 quoted lines
> 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