repo 1.6.7.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBJ7lD4FlMNXpIPXGURAjcdAJwJXzAG2Xi44290L1KWmgZfegL/egCeL2nl
k/Ti0Ocoa1gQ5RUoIKF2dDE=
=T36y
-----END PGP SIGNATURE-----
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>
1 file changed