diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-03-05 19:32:21 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-03-05 19:32:21 +0100 |
commit | 4f8efc97c1ee06bc113443f028ba7821a7af7920 (patch) | |
tree | ff363d659e20dd3950bb3845da6e122d54815a5d /src/transport.c | |
parent | 7a5449662972769b6b09540463d8b6378664393a (diff) | |
download | libgit2-4f8efc97c1ee06bc113443f028ba7821a7af7920.tar.gz |
Make git_remote_supported_url() public and shorten error string
Diffstat (limited to 'src/transport.c')
-rw-r--r-- | src/transport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport.c b/src/transport.c index cd1fd88b5..4c486e200 100644 --- a/src/transport.c +++ b/src/transport.c @@ -10,7 +10,6 @@ #include "git2/net.h" #include "transport.h" #include "path.h" -#include <regex.h> static struct { char *prefix; @@ -67,7 +66,7 @@ int git_transport_new(git_transport **out, const char *url) fn = transport_find_fn(url); if (fn == NULL) - return git__throw(GIT_EINVALIDARGS, "No supported transport mechanism found for URL or path. Either libgit2 has not implemented this transport protocol, or it can not find the specified path."); + return git__throw(GIT_EINVALIDARGS, "Unsupported URL or non-existent path"); error = fn(&transport); if (error < GIT_SUCCESS) |