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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

libfetchers/git: Allow Git Remote Helpers #10567

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 19, 2024

  1. libfetchers/git: Allow Git Remote Helpers

    Remote helpers are programs that are invoked when Git needs to interact
    with remote repositories that it does not support natively, see
    <https://git-scm.com/docs/gitremote-helpers>
    
    The following two changes make use of such remote helpers possible in
    conjunction with Nix:
    
      1. Relax URL scheme filtering for the Git fetcher, such that unknown
         URL schemes are not rejected directly.
         In case there is no corresponding remote helper available, the
         following output is produced:
    
             warning: URL scheme 'git+invalid' is non-standard and requires 'git-remote-invalid'.
             git: 'remote-invalid' is not a git command. See 'git --help'.
             error: program 'git' failed with exit code 128
    
      2. Add `GIT_DIR` to the environment, since this is required by remote
         helpers.
    lorenzleutgeb committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    ee66ec3 View commit details
    Browse the repository at this point in the history