-
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
"fetch-depth: 0" doesn't fetch all branches #1017
Comments
same problem |
It does fetch all branch data from the remote but doesn't configure any of them locally except the current branch. If you need some other branch you can do so after the checkout action like so:
|
That's because See also https://github.com/actions/checkout#checkout-a-different-branch |
Hey @vitalyk-multinarity, thank you for your issue :) I think both @edannenberg and @marc-hb have addressed this issue succinctly (Thank you both for that 🙏🏻), so I'm going to close this issue. If you need more assistance, or there is something that's been missed, please reopen this issue and we can take a look at it :) |
list remote branches. See actions/checkout#1017 (comment)
Adding a note about this to https://github.com/actions/checkout?tab=readme-ov-file#Fetch-all-history-for-all-tags-and-branches could be helpful? |
I totally forgot I ever commented on this issue... Here's a very funny, cosmic timing coincidence: if you are one of the 2.5 people interested in such topics and subscribed to this issue, you may be interested in this unexpected git 2.48 "regression" and (it's NOT related to this GH action, sorry for the "noise") |
I'm using the following snipped for checkout:
but when I run 'git branch ' later I see just one branch.
Please suggest,
Thanks,
Vitaly
The text was updated successfully, but these errors were encountered: