mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 02:01:52 +00:00
Remove the repo param from git_transport_new
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
4e913309b9
commit
ce90a407c7
@ -43,7 +43,7 @@ GIT_BEGIN_DECL
|
|||||||
* @param tranport the transport for the url
|
* @param tranport the transport for the url
|
||||||
* @param url the url of the repo
|
* @param url the url of the repo
|
||||||
*/
|
*/
|
||||||
GIT_EXTERN(int) git_transport_new(git_transport **transport, git_repository *repo, const char *url);
|
GIT_EXTERN(int) git_transport_new(git_transport **transport, const char *url);
|
||||||
|
|
||||||
GIT_EXTERN(int) git_transport_connect(git_transport *transport, git_net_direction direction);
|
GIT_EXTERN(int) git_transport_connect(git_transport *transport, git_net_direction direction);
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ int git_transport_dummy(git_transport **GIT_UNUSED(transport))
|
|||||||
return git__throw(GIT_ENOTIMPLEMENTED, "This protocol isn't implemented. Sorry");
|
return git__throw(GIT_ENOTIMPLEMENTED, "This protocol isn't implemented. Sorry");
|
||||||
}
|
}
|
||||||
|
|
||||||
int git_transport_new(git_transport **out, git_repository *repo, const char *url)
|
int git_transport_new(git_transport **out, const char *url)
|
||||||
{
|
{
|
||||||
git_transport_cb fn;
|
git_transport_cb fn;
|
||||||
git_transport *transport;
|
git_transport *transport;
|
||||||
@ -65,8 +65,6 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url
|
|||||||
if (transport->url == NULL)
|
if (transport->url == NULL)
|
||||||
return GIT_ENOMEM;
|
return GIT_ENOMEM;
|
||||||
|
|
||||||
transport->repo = repo;
|
|
||||||
|
|
||||||
*out = transport;
|
*out = transport;
|
||||||
|
|
||||||
return GIT_SUCCESS;
|
return GIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user