Skip to content
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

Fetching a single remote branch #346

Open
imsteev opened this issue Sep 14, 2020 · 3 comments
Open

Fetching a single remote branch #346

imsteev opened this issue Sep 14, 2020 · 3 comments

Comments

@imsteev
Copy link

imsteev commented Sep 14, 2020

Hi, I'm currently using this action to checkout a repo so that I can prepare a release branch. The only branch I need is the default branch, however I'm noticing in the logs that this action is pulling all remote upstream branches. This is unnecessary work

Is there a way to only fetch a single branch?

In the documentation, the ref parameter seems related, but upon closer look this only affects what branch is checked out, not fetched

    # The branch, tag or SHA to checkout. When checking out the repository that
    # triggered a workflow, this defaults to the reference or SHA for that event.
    # Otherwise, uses the default branch.
    ref: ''

Thank you!

@kenorb
Copy link

kenorb commented Apr 16, 2021

Especially problem, when other branches are big, so checkout can take forever.

@kenorb
Copy link

kenorb commented Apr 16, 2021

Refs/dup: GH-285

@duaneking
Copy link

This is not just inefficient; it is extremely wasteful, and it's a giant code smell.

Imagine that you're dealing with the chromium code base like I am and you have to wait for 33 gigs of data to be transferred because you're not able to filter down to what you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants