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

Improve support for non-master main branches #8364

Merged
merged 1 commit into from
Jun 24, 2020

Commits on Jun 18, 2020

  1. Improve support for non-master main branches

    This commit improves Cargo's support for git repositories whose "main
    branch" is not called `master`. Cargo currently pretty liberally assumes
    that if nothing else about a git repository is specified then `master`
    is the branch name to use. Instead now Cargo has a fourth option as the
    desired reference of a repository named `DefaultBranch`. Cargo doesn't
    know anything about the actual name of the default branch, it just
    updates how git references are fetched internally.
    
    This commit is motivated by news that GitHub is likely to switch away
    from the default branch being named `master` in the near future. It
    would be a bit of a bummer if from now on everyone had to type
    `branch = '...'`, so this tries to improve that!
    alexcrichton committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    4c02977 View commit details
    Browse the repository at this point in the history