<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/connect.c, branch v2.4.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-06-05T19:00:11Z</updated>
<entry>
<title>Merge branch 'bc/connect-plink' into maint</title>
<updated>2015-06-05T19:00:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-05T19:00:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2d8bb4685c4d1e7187f93436fc26ad468a0cf941'/>
<id>urn:sha1:2d8bb4685c4d1e7187f93436fc26ad468a0cf941</id>
<content type='text'>
The connection initiation code for "ssh" transport tried to absorb
differences between the stock "ssh" and Putty-supplied "plink" and
its derivatives, but the logic to tell that we are using "plink"
variants were too loose and falsely triggered when "plink" appeared
anywhere in the path (e.g. "/home/me/bin/uplink/ssh").

* bc/connect-plink:
  connect: improve check for plink to reduce false positives
  t5601: fix quotation error leading to skipped tests
  connect: simplify SSH connection code path
</content>
</entry>
<entry>
<title>connect: improve check for plink to reduce false positives</title>
<updated>2015-04-28T22:23:12Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2015-04-26T20:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=baaf233755f71c057d28b9e8692e24d4fca7d22f'/>
<id>urn:sha1:baaf233755f71c057d28b9e8692e24d4fca7d22f</id>
<content type='text'>
The git_connect function has code to handle plink and tortoiseplink
specially, as they require different command line arguments from
OpenSSH (-P instead of -p for ports; tortoiseplink additionally requires
-batch).  However, the match was done by checking for "plink" anywhere
in the string, which led to a GIT_SSH value containing "uplink" being
treated as an invocation of putty's plink.

Improve the check by looking for "plink" or "tortoiseplink" (or those
names suffixed with ".exe") only in the final component of the path.
This has the downside that a program such as "plink-0.63" would no
longer be recognized, but the increased robustness is likely worth it.
Add tests to cover these cases to avoid regressions.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>connect: simplify SSH connection code path</title>
<updated>2015-04-28T22:23:12Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2015-04-26T20:30:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=37ee646e72d7f39d61a538e21a4c2721e32cb444'/>
<id>urn:sha1:37ee646e72d7f39d61a538e21a4c2721e32cb444</id>
<content type='text'>
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 &lt;peff@peff.net&gt;
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tb/connect-ipv6-parse-fix'</title>
<updated>2015-04-20T22:28:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-04-20T22:28:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9718c7c0c2a92585729d0f2e05ebf2c44b0cc56a'/>
<id>urn:sha1:9718c7c0c2a92585729d0f2e05ebf2c44b0cc56a</id>
<content type='text'>
An earlier update to the parser that disects an address broke an
address, followed by a colon, followed by an empty string (instead
of the port number).

* tb/connect-ipv6-parse-fix:
  connect.c: ignore extra colon after hostname
</content>
</entry>
<entry>
<title>connect.c: ignore extra colon after hostname</title>
<updated>2015-04-09T04:00:53Z</updated>
<author>
<name>Torsten Bögershausen</name>
<email>tboegi@web.de</email>
</author>
<published>2015-04-07T20:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b6c5f7a2f66751a93afce54277a1f30ab0dc521'/>
<id>urn:sha1:6b6c5f7a2f66751a93afce54277a1f30ab0dc521</id>
<content type='text'>
Ignore an extra ':' at the end of the hostname in URL's like
"ssh://example.com:/path/to/repo"

The colon is meant to separate a port number from the hostname.
If the port is empty, the colon should be ignored, see RFC 3986.

It had been working for URLs with ssh:// scheme, but was unintentionally
broken in 86ceb3, "allow ssh://user@[2001:db8::1]/repo.git"

Reported-by: Reid Woodbury Jr. &lt;reidw@rawsound.com&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tb/connect-ipv6-parse-fix' into maint</title>
<updated>2015-03-23T18:23:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-23T18:23:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8c2ea51254b41810edf4ee1ac8b2272a784b15df'/>
<id>urn:sha1:8c2ea51254b41810edf4ee1ac8b2272a784b15df</id>
<content type='text'>
We did not parse username followed by literal IPv6 address in SSH
transport URLs, e.g. ssh://user@[2001:db8::1]:22/repo.git
correctly.

* tb/connect-ipv6-parse-fix:
  t5500: show user name and host in diag-url
  t5601: add more test cases for IPV6
  connect.c: allow ssh://user@[2001:db8::1]/repo.git
</content>
</entry>
<entry>
<title>Merge branch 'jk/daemon-interpolate' into maint</title>
<updated>2015-03-14T05:55:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-14T05:55:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c722ba4814f34d02faed305e4cc6498c783543a9'/>
<id>urn:sha1:c722ba4814f34d02faed305e4cc6498c783543a9</id>
<content type='text'>
The "interpolated-path" option of "git daemon" inserted any string
client declared on the "host=" capability request without checking.
Sanitize and limit %H and %CH to a saner and a valid DNS name.

* jk/daemon-interpolate:
  daemon: sanitize incoming virtual hostname
  t5570: test git-daemon's --interpolated-path option
  git_connect: let user override virtual-host we send to daemon
</content>
</entry>
<entry>
<title>connect.c: do not leak "conn" after showing diagnosis</title>
<updated>2015-03-10T22:36:03Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2015-03-09T16:58:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04f20c04c6e51ee061a44406b9a73bf54683d8eb'/>
<id>urn:sha1:04f20c04c6e51ee061a44406b9a73bf54683d8eb</id>
<content type='text'>
When git_connect() is called to see how the URL is parsed for
debugging purposes with CONNECT_DIAG_URL set, the variable conn is
leaked.  At this point in the codeflow, it only has its memory and
no other resource is associated with it, so it is sufficient to
clean it up by just freeing it.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/simple-cleanups' into maint</title>
<updated>2015-03-06T22:57:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-06T22:57:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f56a5f4fed296647ae8978645f9c627410717398'/>
<id>urn:sha1:f56a5f4fed296647ae8978645f9c627410717398</id>
<content type='text'>
Code cleanups.

* rs/simple-cleanups:
  sha1_name: use strlcpy() to copy strings
  pretty: use starts_with() to check for a prefix
  for-each-ref: use skip_prefix() to avoid duplicate string comparison
  connect: use strcmp() for string comparison
</content>
</entry>
<entry>
<title>Merge branch 'tb/connect-ipv6-parse-fix'</title>
<updated>2015-03-05T20:45:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-05T20:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=42da484006186e653e8b3bf3b4c6b40816450ed2'/>
<id>urn:sha1:42da484006186e653e8b3bf3b4c6b40816450ed2</id>
<content type='text'>
We did not parse username followed by literal IPv6 address in SSH
transport URLs, e.g. ssh://user@[2001:db8::1]:22/repo.git
correctly.

* tb/connect-ipv6-parse-fix:
  t5500: show user name and host in diag-url
  t5601: add more test cases for IPV6
  connect.c: allow ssh://user@[2001:db8::1]/repo.git
</content>
</entry>
</feed>
