diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-05-11 17:34:14 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-05-12 14:39:49 -0400 |
commit | 30e629a0731e205f544205b7900b4d5083e57f08 (patch) | |
tree | 36191b1df1e5fe90a39505aee26d23b6ea9c9b76 | |
parent | ef6d072236bb049480128046932e560e1335cef8 (diff) | |
download | libgit2-30e629a0731e205f544205b7900b4d5083e57f08.tar.gz |
attr: always return errors
-rw-r--r-- | src/attr.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |