Re: [PATCHv2] clone: fix refspec on "--single-branch" option
Ralf Thielow writes: > + else if (remote_head_points_at) > + strbuf_addf(&value, "+%s:%s%s", > our_head_points_at->name, > + > branch_top.buf, prettify_refname(remote_head
[PATCHv2] clone: fix refspec on "--single-branch" option
After a repo was cloned with the "--single-branch" option, the configured refspec looks like "+refs/heads/*:refs/remotes/origin/*". After fetching from this repo again, it'll receive all refs instead of just the ref from the single branch. Fixing this by configure exactly the ref of the branch the