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.
There was an error while loading. Please reload this page.
1 parent e3cf097 commit 9eadfb9Copy full SHA for 9eadfb9
1 file changed
pre_commit/util.py
@@ -77,10 +77,9 @@ def no_git_env():
77
# GIT_DIR: Causes git clone to clone wrong thing
78
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
79
80
- # list of explicitly whitelisted variables
81
- allowed_git_envs = ['GIT_SSH']
82
return {
83
- k: v for k, v in os.environ.items() if not k.startswith('GIT_') or k in allowed_git_envs
+ k: v for k, v in os.environ.items()
+ if not k.startswith('GIT_') or k in {'GIT_SSH'}
84
}
85
86
0 commit comments