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 --git-config flag #432

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

Conversation

ShamrockLee
Copy link

@ShamrockLee ShamrockLee commented Nov 23, 2024

This PR adds a --git-config flag to pass additional Git configurations to the Git executable via the -c name value arguments. This flag can be specified multiple times, preserving spaces inside the configuration values in each specification.

This flag allows running nixpkgs-review with trusted users (usually root) but with the original user's Git configurations (such as user.name and user.email), which helps gain builder access for multi-system reviews.

Fixes #410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge fails when git is not configured (i.e. run as root)
1 participant