Commit 4e01e302 by wilke

Prevent git_tree_walk 'skip entry' callback return code from leaking through as…

Prevent git_tree_walk 'skip entry' callback return code from leaking through as the return value of git_tree_walk
parent 25803c63
......@@ -881,8 +881,10 @@ static int tree_walk(
git_vector_foreach(&tree->entries, i, entry) {
if (preorder) {
error = callback(path->ptr, entry, payload);
if (error > 0)
if (error > 0) {
error = 0;
continue;
}
if (error < 0) {
giterr_clear();
return GIT_EUSER;
......
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