mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 13:05:35 +00:00
remote: simplify anonymous creation
We're down to simply having it be a call to create_internal() so let's simply do that. The rest of the code is just a distraction.
This commit is contained in:
parent
a4b6452a6a
commit
3e20154a9d
@ -313,14 +313,7 @@ on_error:
|
||||
|
||||
int git_remote_create_anonymous(git_remote **out, git_repository *repo, const char *url, const char *fetch)
|
||||
{
|
||||
int error;
|
||||
git_remote *remote;
|
||||
|
||||
if ((error = create_internal(&remote, repo, NULL, url, fetch)) < 0)
|
||||
return error;
|
||||
|
||||
*out = remote;
|
||||
return 0;
|
||||
return create_internal(out, repo, NULL, url, fetch);
|
||||
}
|
||||
|
||||
int git_remote_dup(git_remote **dest, git_remote *source)
|
||||
|
Loading…
Reference in New Issue
Block a user