diff options
author | Vicent Martà <vicent@github.com> | 2013-10-28 09:25:44 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-10-28 09:25:44 -0700 |
commit | 5c50f22a93c78190fb7d81802199ff9defc8cf55 (patch) | |
tree | 66e9f28cb6a3c7cc2f4f4931173410cd4f80b32a /src/odb_pack.c | |
parent | 064e6e8121a6265b42f41f1b12468573cb3ccb19 (diff) | |
parent | ab46b1d8ebcdc820aefe2c1391d4be73939bce95 (diff) | |
download | libgit2-5c50f22a93c78190fb7d81802199ff9defc8cf55.tar.gz |
Merge pull request #1891 from libgit2/cmn/fix-thin-packs
Add support for thin packs
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 897bddf32..4c7c82253 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -541,6 +541,7 @@ static void pack_backend__writepack_free(struct git_odb_writepack *_writepack) static int pack_backend__writepack(struct git_odb_writepack **out, git_odb_backend *_backend, + git_odb *odb, git_transfer_progress_callback progress_cb, void *progress_payload) { @@ -557,7 +558,7 @@ static int pack_backend__writepack(struct git_odb_writepack **out, GITERR_CHECK_ALLOC(writepack); if (git_indexer_stream_new(&writepack->indexer_stream, - backend->pack_folder, progress_cb, progress_payload) < 0) { + backend->pack_folder, odb, progress_cb, progress_payload) < 0) { git__free(writepack); return -1; } |