diff options
| author | Nico Sallembien <nsallembien@google.com> | 2010-04-27 14:35:27 -0700 |
|---|---|---|
| committer | Nico Sallembien <nsallembien@google.com> | 2010-04-27 14:35:27 -0700 |
| commit | 1c85f4e43ba2d337b1e8c49bb3c7814a5cb163ae (patch) | |
| tree | e2f22213eec12b827bf4cfeaf6cf72b6d45f6d8e /git_command.py | |
| parent | 719965af35a2fab96cb578c8a19a48a2cf9fe8e8 (diff) | |
| download | git-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.py | 4 |
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 | ||
| 33 | def _ssh_sock(create=True): | 33 | def 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: |
