You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With with: fetch-depth: 1, we get --depth 1, but I could not find a way to specify the last argument --single-branch, which skips fetching details of all branches except for the one specified by --branch (or default branch, if --branch or -b was skipped). Without --single-branch, it means "get depth 1 of all branches", and in case there are many (100+) branches, it is a sheer waste of time and resource for those who are interested in just one branch during the build (i.e. a common use-case).
Is there an idiomatic way to specify it? If not, please consider it for the future version.
Cheers!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello, AFAIK, the fastest way to clone just a single branch of a huge repository requires the following arguments:
With
with: fetch-depth: 1
, we get--depth 1
, but I could not find a way to specify the last argument--single-branch
, which skips fetching details of all branches except for the one specified by--branch
(or default branch, if--branch
or-b
was skipped). Without --single-branch, it means "get depth 1 of all branches", and in case there are many (100+) branches, it is a sheer waste of time and resource for those who are interested in just one branch during the build (i.e. a common use-case).Is there an idiomatic way to specify it? If not, please consider it for the future version.
Cheers!
The text was updated successfully, but these errors were encountered: