mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
pass GIT_SSH_COMMAND to git commands, refs #947
This commit is contained in:
parent
2fa0fabb05
commit
db04d612e0
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ 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'}
|
||||
if not k.startswith('GIT_') or k in {'GIT_SSH', 'GIT_SSH_COMMAND'}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue