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

package/scripts/postinstall: avoid writing to ~/.gitconfig #17068

Merged
merged 5 commits into from
Apr 11, 2024

Commits on Apr 10, 2024

  1. package/scripts/postinstall: avoid writing to ~/.gitconfig

    We can eliminate permission issues by not touching `~/.gitconfig` at
    all.
    
    Fixes #17067.
    ZhongRuoyu committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b516fda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad4a080 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c24f91 View commit details
    Browse the repository at this point in the history
  4. package/scripts/postinstall: avoid writing to ~/.gitconfig

    In this attempt we pretend that the "global" configs are in the
    repository itself.
    
        $ XDG_CONFIG_HOME= HOME=$PWD git config --global section.key value
        $ XDG_CONFIG_HOME= HOME=$PWD git config --global section.key
        value
        $ git config --global section.key
        $ cat $PWD/.gitconfig
        [section]
          key = value
    ZhongRuoyu committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    f764428 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. package/scripts/postinstall: simplify

    It is safe to override `HOME` for the entire script as only Git uses it.
    ZhongRuoyu committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    8a0b4ed View commit details
    Browse the repository at this point in the history