mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-14 15:30:43 +00:00
Clear error msg when we eat error silently
This commit is contained in:
parent
f470b00b03
commit
52c5273735
@ -587,8 +587,10 @@ int git_stash_foreach(
|
|||||||
const git_reflog_entry *entry;
|
const git_reflog_entry *entry;
|
||||||
|
|
||||||
error = git_reference_lookup(&stash, repo, GIT_REFS_STASH_FILE);
|
error = git_reference_lookup(&stash, repo, GIT_REFS_STASH_FILE);
|
||||||
if (error == GIT_ENOTFOUND)
|
if (error == GIT_ENOTFOUND) {
|
||||||
|
giterr_clear();
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user