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

Default branch instead of "master" #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

giovanichaves
Copy link

Some repos default branch are not named "master" so cloning fails if we select branch "master" If "master" is wished, clone should be done without branch selection, so the default branch is selected.

Some repos default branch are not named "master" so cloning fails if we select branch "master"
If "master" is wished, clone should be done without branch selection, so the default branch is selected.
@giovanichaves
Copy link
Author

@tkralphs can you merge this one together with coin-or/COIN-OR-OptimizationSuite#31

Adjusting update to fetch from same default branch to be compatible with different-than-master
@giovanichaves
Copy link
Author

additionally, when fetching a repo that already exists, if the default branch (indicated by "master" in Dependencies file but might be different) then we should just rebase

@tkralphs
Copy link
Member

I'm not sure this is quite the right fix. This fix effectively means that if one specifies the master branch, then one automatically gets whatever the "default" is, whether that is the intention or not. This would be incorrect for projects that do have a master branch, but where that branch is not the default. In such a case, I suppose one might really want master and not the default. So far, I don't think there is such a project, but there may be some soon, as I'm considering changing the default branch of some of my projects to something other than master. I guess there should just be a way of specifying that one wants the "default" branch, whatever it is.

@giovanichaves
Copy link
Author

giovanichaves commented Dec 19, 2024 via email

@giovanichaves
Copy link
Author

giovanichaves commented Dec 19, 2024 via email

@tkralphs
Copy link
Member

Wow, really sorry to hear that!

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

Successfully merging this pull request may close these issues.

2 participants