diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 13:39:35 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-04 15:26:41 +0200 |
commit | 0b33fca03e030c7e807f0c75d7332e7fe2d3c0bc (patch) | |
tree | c45fa36c4bd8e1fa96768febb18f4b5bc861ee7a /src/pack-objects.c | |
parent | 51e82492ef5206767e176952733914275d0e3bdc (diff) | |
download | libgit2-0b33fca03e030c7e807f0c75d7332e7fe2d3c0bc.tar.gz |
indexer: fix thin packs
When given an ODB from which to read objects, the indexer will attempt
to inject the missing bases at the end of the pack and update the
header and trailer to reflect the new contents.
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index 4d79ad95b..6a18d4be4 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -1253,7 +1253,7 @@ int git_packbuilder_write( PREPARE_PACK; if (git_indexer_stream_new( - &indexer, path, progress_cb, progress_cb_payload) < 0) + &indexer, path, pb->odb, progress_cb, progress_cb_payload) < 0) return -1; ctx.indexer = indexer; |