From 9eadfb92fd8ac17987d9e7babf0b9c3dda85b410 Mon Sep 17 00:00:00 2001 From: Rory Prendergast Date: Tue, 2 Jan 2018 12:57:18 -0800 Subject: [PATCH] reduces line length --- pre_commit/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pre_commit/util.py b/pre_commit/util.py index a0eb3764..81cd3064 100644 --- a/pre_commit/util.py +++ b/pre_commit/util.py @@ -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'} }