vendor/libgit2/src/transport.c in rugged-0.27.9 vs vendor/libgit2/src/transport.c in rugged-0.27.10
- old
+ new
@@ -121,19 +121,19 @@
git_transport *transport;
void *param;
int error;
if ((error = transport_find_fn(&fn, url, ¶m)) == GIT_ENOTFOUND) {
- giterr_set(GITERR_NET, "unsupported URL protocol");
+ git_error_set(GIT_ERROR_NET, "unsupported URL protocol");
return -1;
} else if (error < 0)
return error;
if ((error = fn(&transport, owner, param)) < 0)
return error;
- GITERR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport");
+ GIT_ERROR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport");
*out = transport;
return 0;
}
@@ -160,11 +160,11 @@
goto on_error;
}
}
definition = git__calloc(1, sizeof(transport_definition));
- GITERR_CHECK_ALLOC(definition);
+ GIT_ERROR_CHECK_ALLOC(definition);
definition->prefix = git_buf_detach(&prefix);
definition->fn = cb;
definition->param = param;
@@ -172,11 +172,11 @@
goto on_error;
return 0;
on_error:
- git_buf_free(&prefix);
+ git_buf_dispose(&prefix);
git__free(definition);
return error;
}
int git_transport_unregister(const char *scheme)
@@ -208,10 +208,10 @@
}
error = GIT_ENOTFOUND;
done:
- git_buf_free(&prefix);
+ git_buf_dispose(&prefix);
return error;
}
int git_transport_init(git_transport *opts, unsigned int version)
{