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

Add explicit bareRepository configuration when pushing bare mirror #35338

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 19, 2024

  1. Add explicit bareRepository configuration when pushing bare mirror

    If a user has configured `bareRepository=explicit` in their
    configuration, the push operation in this example will fail with the
    message:
    
        fatal: cannot use bare repository '<path>.git' (safe.bareRepository is 'explicit')
    
    By adding `-c "safe.bareRepository=all"` to the default instruction set,
    this should prevent issues for users who have bareRepository configured.
    
    Signed-off-by: James Knight <[email protected]>
    jdknight authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    8c1ceaf View commit details
    Browse the repository at this point in the history