Re: [BUG] fetching all remote branches results in failed multiple updates
To
Junio C Hamano
Cc
SZEDER Gábor
git@vger.kernel.org
From
Alexander Huynh
See Also
Prev Ref 1 Ref 2 Ref 3 Ref 4
Date
2019-03-14 17:20:32 UTC
Hi all,

Sorry to bother one last time. After a bit more digging, I found that the
problem was with my workflow.

Shallow clones set `remote.origin.fetch` to one branch, so what I was doing in
the past was overriding the respository-specific `remote.origin.fetch` with my
global config.

I've now changed my workflow to perform a shallow clone at first, `cd` into
the repository, and locally set `remote.origin.fetch` to
`+refs/heads/*:refs/remotes/origin/*`.

Thanks again,
Alex