libgit2/libgit2 — pull request #536 by nulltoken (2012-01-17 18:55:08+00:00)
Title: Fix transport segfault

This PR fixes an issue detected by @uluhonolulu (cf this [comment](https://github.com/libgit2/libgit2sharp/issues/65#issuecomment-3513833)).

`git@github.com:uluhonolulu/Chpokk.git` url format is not supported by libgit2 yet. However, while trying to determine correct transport mechanism for this kind of url, `transport_find_fn()` was looping one step farther than required. This was causing a segfault.

Additionally, as local transport is the default, the error message while trying (and failing) to open a repository has been slightly enhanced with the expanded path to the invalid repository.

This makes the error stack a bit more explicit when encountering such kind of issue.

```
Error: Failed to connect the transport
- Failed to open remote
- The given path (D:/libgit2/libgit2-msvc/cmake-build/git@github.com:uluhonolulu/Chpokk.git/) is not a valid Git repository
```