mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-02 22:54:15 +00:00
remotes: Proper return for git_remote_ls
This commit is contained in:
parent
51e1d80846
commit
d8d28e2ef6
@ -420,10 +420,8 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload)
|
||||
|
||||
pkt = (git_pkt_ref *)p;
|
||||
|
||||
if (list_cb(&pkt->head, payload) < 0) {
|
||||
giterr_set(GITERR_NET, "User callback returned error");
|
||||
return -1;
|
||||
}
|
||||
if (list_cb(&pkt->head, payload) < 0)
|
||||
return GIT_EUSER;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user