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

GitDriver: try to fetch default branch from remote #10687

Merged
merged 2 commits into from Apr 1, 2022

Commits on Apr 1, 2022

  1. GitDriver: try to fetch default branch from remote

    The initial clone determined what the default branch of the cache git repository was. Changing it on the remote didn't have any impact on the local data. However, cloning it on a different machine would then store a different default branch on that machine. This could lead to different results for the same command on different machines.
    glaubinix committed Apr 1, 2022
    Copy the full SHA
    fcf690a View commit details
    Browse the repository at this point in the history
  2. Update src/Composer/Repository/Vcs/GitDriver.php

    Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
    glaubinix and Seldaek committed Apr 1, 2022
    Copy the full SHA
    47576e9 View commit details
    Browse the repository at this point in the history