-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idiomatic way of specifying --single-branch argument #285
Comments
6 tasks
Hey guys, any updates so far? Looks like this still not implemented. |
Also looking for something like this. Could not reproduce using |
Is there any update on this? Or at least - can you provide an approach that does something similar to what is required? |
Is there any update on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: