reduces line length

This commit is contained in:
Rory Prendergast
2018-01-02 12:57:18 -08:00
parent e3cf0975f9
commit 9eadfb92fd

View File

@@ -77,10 +77,9 @@ def no_git_env():
# GIT_DIR: Causes git clone to clone wrong thing
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
# list of explicitly whitelisted variables
allowed_git_envs = ['GIT_SSH']
return {
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'}
}