Commit d8d28e2e by Vicent Marti

remotes: Proper return for `git_remote_ls`

parent 51e1d808
...@@ -420,10 +420,8 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload) ...@@ -420,10 +420,8 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload)
pkt = (git_pkt_ref *)p; pkt = (git_pkt_ref *)p;
if (list_cb(&pkt->head, payload) < 0) { if (list_cb(&pkt->head, payload) < 0)
giterr_set(GITERR_NET, "User callback returned error"); return GIT_EUSER;
return -1;
}
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment