Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 889124b

Browse files
authored
Merge pull request #948 from firba1/bariteau/add_git_ssh_command_support
pass GIT_SSH_COMMAND to git commands
2 parents 2fa0fab + db04d61 commit 889124b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def no_git_env():
2929
# GIT_INDEX_FILE: Causes 'error invalid object ...' during commit
3030
return {
3131
k: v for k, v in os.environ.items()
32-
if not k.startswith('GIT_') or k in {'GIT_SSH'}
32+
if not k.startswith('GIT_') or k in {'GIT_SSH', 'GIT_SSH_COMMAND'}
3333
}
3434

3535

0 commit comments

Comments
 (0)