From 30e629a0731e205f544205b7900b4d5083e57f08 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 11 May 2015 17:34:14 -0400 Subject: [PATCH] attr: always return errors --- src/attr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/attr.c b/src/attr.c index 102d0248c..d43a15f50 100644 --- a/src/attr.c +++ b/src/attr.c @@ -309,7 +309,8 @@ static int attr_setup(git_repository *repo, git_attr_session *attr_session) if (error == 0) error = preload_attr_file( repo, attr_session, GIT_ATTR_FILE__FROM_FILE, NULL, sys.ptr); - else if (error != GIT_ENOTFOUND) + + if (error != GIT_ENOTFOUND) return error; git_buf_free(&sys);