From: Harald Nordgren Date: Tue, 29 Sep 2026 09:27:29 GMT Subject: Re: [PATCH v4 2/4] fetch: infer branches to fetch from a refmap-only remote Message-ID: In-Reply-To: <45b26e2bb292f31eb36d88e2fcf8801eb8313374.1790673598.git.gitgitgadget@gmail.com> > +test_expect_success 'a bare fetch needs nothing until a branch is tracked' ' > + ( > + cd client && > + git fetch upstream && > + git for-each-ref --format="%(refname)" refs/remotes/upstream >actual && > + test_must_be_empty actual > + ) > +' I still don't think it makes sense that bare 'git fetch upstream' doesn't fetch the HEAD branch to then allow me to do git branch --set-upstream-to=upstream But maybe that's for another topic. Harald