diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-01-04 20:42:41 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-01-10 18:34:56 +0400 |
commit | 891a4681ebba330f9ef33c609c5435e580ca1551 (patch) | |
tree | 64d19f6c0ef09f202aca335e879cab553e48a0c4 /src/odb_pack.c | |
parent | 4a863c06662053a8530a0dcb24e0a2daa33e05cf (diff) |
dat errorcode
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 5 |
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; |