jelmer / dulwich

Pure-Python Git implementation
https://www.dulwich.io/
Other
2.06k stars 395 forks source link

Allow overriding of global and system configuration #1193

Open sisp opened 1 year ago

sisp commented 1 year ago

Git v2.32.0 introduced two new environment variables, GIT_CONFIG_GLOBAL and GIT_CONFIG_SYSTEM, for overriding global and system configurations which is especially useful for executing git commands in a sanitized environment. Since Dulwich already supports GIT_CONFIG_NOSYSTEM, I think it would be great to also add these two environment variables.

See https://github.com/git/git/commit/4179b4897f2de28858acaebd6382c06c91532e98 for the original commit in the git project.

jelmer commented 1 year ago

That makes sense; not sure if I'll have time to look at this myself anytime soon, but happy to review PRs.