3 ms·
I'm a git noob, so I'm sorry if this sounds dumb but wouldn't git clone --single-branch achieve the same thing (i.e, check out only the branch you want to bui
by muststopmyths 6y ago
I'm a git noob, so I'm sorry if this sounds dumb but wouldn't
git clone --single-branch
achieve the same thing (i.e, check out only the branch you want to build) ?
Also, why would you not only check out one branch when doing CI ?
- jxramos 6y agoLooks like its implied from the documentation Implies --single-branch https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt https://git-scm.com/docs/git-clone#Documentation/git-clone.t...
- muststopmyths 6y agohmm, the --depth implies single-branch, but the +refs overrode it by making sure it had the data to match all branches because of the wildcard refspec ?