summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorNico Sallembien <nsallembien@google.com>2010-04-27 14:35:27 -0700
committerNico Sallembien <nsallembien@google.com>2010-04-27 14:35:27 -0700
commit1c85f4e43ba2d337b1e8c49bb3c7814a5cb163ae (patch)
treee2f22213eec12b827bf4cfeaf6cf72b6d45f6d8e /git_command.py
parent719965af35a2fab96cb578c8a19a48a2cf9fe8e8 (diff)
downloadgit-repo-1c85f4e43ba2d337b1e8c49bb3c7814a5cb163ae.tar.gz
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.
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_command.py b/git_command.py
index d56ad0a8..3309f378 100644
--- a/git_command.py
+++ b/git_command.py
@@ -30,7 +30,7 @@ LAST_CWD = None
30_ssh_proxy_path = None 30_ssh_proxy_path = None
31_ssh_sock_path = None 31_ssh_sock_path = None
32 32
33def _ssh_sock(create=True): 33def ssh_sock(create=True):
34 global _ssh_sock_path 34 global _ssh_sock_path
35 if _ssh_sock_path is None: 35 if _ssh_sock_path is None:
36 if not create: 36 if not create:
@@ -119,7 +119,7 @@ class GitCommand(object):
119 if disable_editor: 119 if disable_editor:
120 env['GIT_EDITOR'] = ':' 120 env['GIT_EDITOR'] = ':'
121 if ssh_proxy: 121 if ssh_proxy:
122 env['REPO_SSH_SOCK'] = _ssh_sock() 122 env['REPO_SSH_SOCK'] = ssh_sock()
123 env['GIT_SSH'] = _ssh_proxy() 123 env['GIT_SSH'] = _ssh_proxy()
124 124
125 if project: 125 if project: