Commit ce90d81f by Vicent Marti

revwalk: Do not set error string on revwalk over

parent 8172dd43
......@@ -546,12 +546,15 @@ int git_revwalk_next(git_oid *oid, git_revwalk *walk)
}
error = walk->get_next(&next, walk);
if (error < GIT_SUCCESS) {
if (error == GIT_EREVWALKOVER)
git_revwalk_reset(walk);
return git__rethrow(error, "Failed to load next revision");
if (error == GIT_EREVWALKOVER) {
git_revwalk_reset(walk);
return GIT_EREVWALKOVER;
}
if (error < GIT_SUCCESS)
return git__rethrow(error, "Failed to load next revision");
git_oid_cpy(oid, &next->oid);
return GIT_SUCCESS;
}
......
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