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:
authorVicent Marti <tanoku@gmail.com>2013-01-04 20:42:41 +0400
committerVicent Marti <tanoku@gmail.com>2013-01-10 18:34:56 +0400
commit891a4681ebba330f9ef33c609c5435e580ca1551 (patch)
tree64d19f6c0ef09f202aca335e879cab553e48a0c4 /src/odb_pack.c
parent4a863c06662053a8530a0dcb24e0a2daa33e05cf (diff)
dat errorcode
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r--src/odb_pack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index e1b44d9ca..9d0c4c0e7 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -600,7 +600,12 @@ int git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir)
}
if (git_path_isdir(git_buf_cstr(&path)) == true) {
+ int error;
+
backend->pack_folder = git_buf_detach(&path);
+ error = pack_backend__refresh((git_odb_backend *)backend);
+ if (error < 0)
+ return error;
}
backend->parent.read = &pack_backend__read;