commit | 896d5dffd313a2ad91fd8bee750241a6512b25dc | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Tue Apr 21 14:51:04 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Tue Apr 21 14:51:04 2009 -0700 |
tree | c2f11ce9393b2f27cff759578cad6bb5c7bdf486 | |
parent | 9360966bd2ff68fd7257b50df1a7fcb5e62fe189 [diff] |
Fix UnboundLocalError: local variable 'port' when using SSH If the SSH URL doesn't contain a port number, but uses the ssh:// or git+ssh:// syntax we raised a Python runtime error due to the 'port' local variable not being assigned a value. Default it to the IANA assigned port for SSH, 22. Signed-off-by: Shawn O. Pearce <sop@google.com>