mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 19:04:05 +00:00
revwalk: Do not set error string on revwalk over
This commit is contained in:
parent
8172dd4383
commit
ce90d81f6f
@ -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)
|
||||
|
||||
if (error == GIT_EREVWALKOVER) {
|
||||
git_revwalk_reset(walk);
|
||||
return git__rethrow(error, "Failed to load next revision");
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user