-
Notifications
You must be signed in to change notification settings - Fork 66
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
Suggestion: allow all remote branches to be fetched via config? #381
Comments
Could you describe your exact use-case a bit more? And are you using I do think this could potentially be added. But in that case, we also need to ensure that the user will get appropriate error messages if, for example, they do |
Absolutely, at a high level we're looking to verify an organisation-wide upgrade of one of our key dependencies. Since this is a breaking change and a substantial number of our repos don't have adequate snapshot testing, we decided that the best approach is to create a PR to show the diff pre and post-upgrade. To do this, we run the following operations in our script:
The reason that we're creating the PR ourselves and not using multi-gitter is that we need the PR to compare the diff between And we're using |
I've been able to work around this by running the following in my script before checking out the upgrade branch:
If this functionality is required by others I'm happy to add this, but I'll leave this up to your judgement as to whether to close this issue or not! |
First off, thank you for creating this project. It's helped me out tremendously!
Describe the bug
I have a use case where I want to use multi-gitter to operate on different remote branches. Within my script, I want to check-out multiple remote branches and perform some steps so I can compare the differences later. However to my initial confusion, the only remote branch I'm able to access is the default branch
To Reproduce
Steps to reproduce the behavior:
git fetch
andgit branch -a
Expected behavior
I expected to see all remote branches (similar to what I'd see running
git branch -a
locally). It wasn't until I did some searching that I found theCloneOptions
here. My understanding is that this only clones a single branch?Is it possible to make the
SingleBranch
bool configurable? (if that's the root cause, happy to be corrected if it isn't!)Additional context
If you're happy to accept contributions, I can raise something similar to this PR to make the property configurable!
I fully understand that my specific use case is on the more bizarre end and probably not what multi-gitter was intended for, hence why I'm asking about this first. TIA!
The text was updated successfully, but these errors were encountered: