Clear error msg when we eat error silently

This commit is contained in:
Russell Belfer 2013-05-01 15:51:30 -07:00
parent f470b00b03
commit 52c5273735

View File

@ -587,8 +587,10 @@ int git_stash_foreach(
const git_reflog_entry *entry;
error = git_reference_lookup(&stash, repo, GIT_REFS_STASH_FILE);
if (error == GIT_ENOTFOUND)
if (error == GIT_ENOTFOUND) {
giterr_clear();
return 0;
}
if (error < 0)
goto cleanup;