Sitelet https://github.com/pre-commit/pre-commit/issues/2271
Skip to content

Add GIT_HTTP_PROXY_AUTHMETHOD to kept environment variables #2271

Description

@vincentberthier

describe your issue

On the cluster I work on, there’s a proxy. It’s… Let’s just say that proxy is being a pain, and to make it work we have to set the environment variable GIT_HTTP_PROXY_AUTHMETHOD.

In pre_commit/git.py however, only a small subset of variables are kept, and that one is not among them. So, sure, I can (and did) edit the script to keep that one too (and it works now) but it’s not ideal.

pre-commit --version

pre-commit 2.17.0

.pre-commit-config.yaml

Not relevant

~/.cache/pre-commit/pre-commit.log (if present)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions