Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 889124b commit 9cde231Copy full SHA for 9cde231
1 file changed
pre_commit/git.py
@@ -29,7 +29,8 @@ def no_git_env():
29
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
30
return {
31
k: v for k, v in os.environ.items()
32
- if not k.startswith('GIT_') or k in {'GIT_SSH', 'GIT_SSH_COMMAND'}
+ if not k.startswith('GIT_') or
33
+ k in {'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND'}
34
}
35
36
0 commit comments