Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-11 19:24:29 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-11 19:26:20 +0400
commit893055f22e5395ec95231b4cc8a19046a3eb5b4a (patch)
tree11bfecd3bd17817388d1381fd67abebe0b2fd950 /tests-clar
parent7fb6eb278b350f9f4caab5a3f72bfb70353fc40d (diff)
indexer: clearer stats for thin packs
Don't increase the number of total objects, as it can produce suprising progress output. The only addition compared to pre-thin is the addition of local_objects to allow an output similar to git's "completed with %d local objects".
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/pack/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/pack/indexer.c b/tests-clar/pack/indexer.c
index fd1616034..17ec7b3f8 100644
--- a/tests-clar/pack/indexer.c
+++ b/tests-clar/pack/indexer.c
@@ -79,7 +79,7 @@ void test_pack_indexer__fix_thin(void)
cl_git_pass(git_indexer_stream_add(idx, thin_pack, thin_pack_len, &stats));
cl_git_pass(git_indexer_stream_finalize(idx, &stats));
- cl_assert_equal_i(stats.total_objects, 3);
+ cl_assert_equal_i(stats.total_objects, 2);
cl_assert_equal_i(stats.received_objects, 2);
cl_assert_equal_i(stats.indexed_objects, 2);
cl_assert_equal_i(stats.local_objects, 1);