mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 09:41:04 +00:00
Clear error to avoid leaving invalid error behind
This commit is contained in:
parent
e9e20c8474
commit
6ac724afbe
@ -572,9 +572,11 @@ static int collect_attr_files(
|
||||
error = git_futils_find_system_file(&dir, GIT_ATTR_FILE_SYSTEM);
|
||||
if (!error)
|
||||
error = push_attr_file(repo, files, NULL, dir.ptr);
|
||||
else if (error == GIT_ENOTFOUND)
|
||||
else if (error == GIT_ENOTFOUND) {
|
||||
giterr_clear();
|
||||
error = 0;
|
||||
}
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (error < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user