From 877282ea6f60c453084e54738349c8574c9b97e2 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sat, 23 Jul 2016 11:47:59 +0100 Subject: [PATCH 1/2] Fix outdated comment SSH transport seems to be supported now. --- src/transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transport.c b/src/transport.c index 327052fa3..33f949e06 100644 --- a/src/transport.c +++ b/src/transport.c @@ -89,8 +89,7 @@ static int transport_find_fn( /* For other systems, perform the SSH check first, to avoid going to the * filesystem if it is not necessary */ - /* It could be a SSH remote path. Check to see if there's a : - * SSH is an unsupported transport mechanism in this version of libgit2 */ + /* It could be a SSH remote path. Check to see if there's a : */ if (!definition && strrchr(url, ':')) { // re-search transports again with ssh:// as url so that we can find a third party ssh transport definition = transport_find_by_url("ssh://"); From 8b2ad593a885848eaacc6d5524a98e8ddf26c05c Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sat, 23 Jul 2016 11:55:43 +0100 Subject: [PATCH 2/2] Make comment conform to style guide Style guide says // style comments should be avoided. --- src/transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport.c b/src/transport.c index 33f949e06..821d9bf3f 100644 --- a/src/transport.c +++ b/src/transport.c @@ -91,7 +91,8 @@ static int transport_find_fn( /* It could be a SSH remote path. Check to see if there's a : */ if (!definition && strrchr(url, ':')) { - // re-search transports again with ssh:// as url so that we can find a third party ssh transport + /* re-search transports again with ssh:// as url + * so that we can find a third party ssh transport */ definition = transport_find_by_url("ssh://"); }