Commit 4cb3c7abe1a56ef93d2e0078ad86d09aed0cccce

Vicent Martí 2013-11-07T10:11:26

Merge pull request #1953 from ethomson/packfile_example update example to new packfile creation signature

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/network/index-pack.c b/examples/network/index-pack.c
index 59fff41..314f211 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_new(&idx, ".", NULL, NULL, NULL) < 0) {
+	if (git_indexer_new(&idx, ".", 0, NULL, NULL, NULL) < 0) {
 		puts("bad idx");
 		return -1;
 	}