Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-12-19 03:12:06 +0400
committerRussell Belfer <rb@github.com>2013-01-05 03:23:47 +0400
commit6ac724afbe0b1244f84b9acc5dc8be0646be5ce3 (patch)
tree205786337ee4a2485dbbfb2c19bf2480b9ca9947 /src/attr.c
parente9e20c8474b4f7ecdb1076c2f2d9c06f21e6be5b (diff)
Clear error to avoid leaving invalid error behind
Diffstat (limited to 'src/attr.c')
-rw-r--r--src/attr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attr.c b/src/attr.c
index 95d63bea8..1b414417e 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -572,8 +572,10 @@ 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: