diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index a7c82107..75936d40 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -23,7 +23,10 @@ from signal import SIGTERM | |||
| 23 | from urllib2 import urlopen, HTTPError | 23 | from urllib2 import urlopen, HTTPError |
| 24 | from error import GitError, UploadError | 24 | from error import GitError, UploadError |
| 25 | from trace import Trace | 25 | from trace import Trace |
| 26 | from git_command import GitCommand, ssh_sock | 26 | |
| 27 | from git_command import GitCommand | ||
| 28 | from git_command import ssh_sock | ||
| 29 | from git_command import terminate_ssh_clients | ||
| 27 | 30 | ||
| 28 | R_HEADS = 'refs/heads/' | 31 | R_HEADS = 'refs/heads/' |
| 29 | R_TAGS = 'refs/tags/' | 32 | R_TAGS = 'refs/tags/' |
| @@ -391,6 +394,8 @@ def _open_ssh(host, port): | |||
| 391 | return True | 394 | return True |
| 392 | 395 | ||
| 393 | def close_ssh(): | 396 | def close_ssh(): |
| 397 | terminate_ssh_clients() | ||
| 398 | |||
| 394 | for key,p in _ssh_cache.iteritems(): | 399 | for key,p in _ssh_cache.iteritems(): |
| 395 | try: | 400 | try: |
| 396 | os.kill(p.pid, SIGTERM) | 401 | os.kill(p.pid, SIGTERM) |
