]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
connect: simplify SSH connection code path
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 26 Apr 2015 20:30:10 +0000 (20:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Apr 2015 22:23:12 +0000 (15:23 -0700)
commit37ee646e72d7f39d61a538e21a4c2721e32cb444
treeec5f6aa9cc66d552dda95b2aa72a1dc4838864e5
parent8c2ea51254b41810edf4ee1ac8b2272a784b15df
connect: simplify SSH connection code path

The code path used in git_connect pushed the majority of the SSH
connection code into an else block, even though the if block returns.
Simplify the code by eliminating the else block, as it is unneeded.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c