mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-05-20 05:46:16 +08:00
Rename _ssh_sock() to fix code style issue.
Since _ssh_sock is imported out of the git_command module, the leading underscore should be removed from the function name.
This commit is contained in:
@ -30,7 +30,7 @@ LAST_CWD = None
|
||||
_ssh_proxy_path = None
|
||||
_ssh_sock_path = None
|
||||
|
||||
def _ssh_sock(create=True):
|
||||
def ssh_sock(create=True):
|
||||
global _ssh_sock_path
|
||||
if _ssh_sock_path is None:
|
||||
if not create:
|
||||
@ -119,7 +119,7 @@ class GitCommand(object):
|
||||
if disable_editor:
|
||||
env['GIT_EDITOR'] = ':'
|
||||
if ssh_proxy:
|
||||
env['REPO_SSH_SOCK'] = _ssh_sock()
|
||||
env['REPO_SSH_SOCK'] = ssh_sock()
|
||||
env['GIT_SSH'] = _ssh_proxy()
|
||||
|
||||
if project:
|
||||
|
Reference in New Issue
Block a user