Re: [PATCH] fetch: add config to avoid fetching every branch in shallow repo
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Sep 22, 2026, 13:00 UTC
- Message-ID
- <CAHwyqnUVkVUjKCiN7YT3tkvHEVCQwb3jDGM0OTojPxptFKrsLQ@mail.gmail.com>
- In-Reply-To
- <CAHwyqnWbbCK40qAU1vhCFmN86J-dCY3tv_N_nBYgK2Bxf3o1fg@mail.gmail.com>
Show 6 quoted lines
> > If it is the former then we should think > > how we can improve the behavior of "git remote add" in a sparse > > repository to prevent it adding a wildcard fetch refspec and instead > > setup the new remote to fetch only the branch(es) we're interested in. > > I didn't even consider that, that sounds like an interesting idea!
Would you suggest we do that instead of this, or in addition to this fix?
Seems maybe we only need the fix on "git remote add".
Harald