Hacker News new | past | comments | ask | show | jobs | submit login

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 ?




Looks like its implied from the documentation

    Implies --single-branch
https://git-scm.com/docs/git-clone#Documentation/git-clone.t...


hmm, 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 ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: