summaryrefslogtreecommitdiff
path: root/examples/network/index-pack.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-02 13:39:35 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-04 15:26:41 +0200
commit0b33fca03e030c7e807f0c75d7332e7fe2d3c0bc (patch)
treec45fa36c4bd8e1fa96768febb18f4b5bc861ee7a /examples/network/index-pack.c
parent51e82492ef5206767e176952733914275d0e3bdc (diff)
downloadlibgit2-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 'examples/network/index-pack.c')
-rw-r--r--examples/network/index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/index-pack.c b/examples/network/index-pack.c
index 889305da8..08b45c58c 100644
--- a/examples/network/index-pack.c
+++ b/examples/network/index-pack.c
@@ -46,7 +46,7 @@ int index_pack(git_repository *repo, int argc, char **argv)
return EXIT_FAILURE;
}
- if (git_indexer_stream_new(&idx, ".", NULL, NULL) < 0) {
+ if (git_indexer_stream_new(&idx, ".", NULL, NULL, NULL) < 0) {
puts("bad idx");
return -1;
}