summaryrefslogtreecommitdiff
path: root/src/odb_pack.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-09-08 18:22:28 +0200
committernulltoken <emeric.fermas@gmail.com>2013-09-10 22:36:10 +0200
commitd0cd6c427a35b257373c7178d1e17d82001e125f (patch)
tree12c22e3a8b979d586391ccb410fd2bc1e985d710 /src/odb_pack.c
parent38859f293720a960acaf7f426c683ab1a71b18c6 (diff)
downloadlibgit2-d0cd6c427a35b257373c7178d1e17d82001e125f.tar.gz
path: Make direach() return EUSER on callback error
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index d24b4aa99..cadc93a65 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -336,7 +336,7 @@ static int pack_backend__refresh(git_odb_backend *_backend)
git_buf_free(&path);
if (error < 0)
- return error;
+ return -1;
git_vector_sort(&backend->packs);
return 0;