mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Merge pull request #944 from minrk/respect-git-exec-path
don't unset GIT_EXEC_PATH
This commit is contained in:
@@ -29,7 +29,8 @@ def no_git_env():
|
||||
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
|
||||
return {
|
||||
k: v for k, v in os.environ.items()
|
||||
if not k.startswith('GIT_') or k in {'GIT_SSH', 'GIT_SSH_COMMAND'}
|
||||
if not k.startswith('GIT_') or
|
||||
k in {'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND'}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user