3 test_description
='Test that adding many notes triggers automatic fanout restructuring'
7 test_expect_success
'creating many notes with git-notes' '
10 while test $i -lt $num_notes
14 echo "file for commit #$i" > file &&
16 git commit -q -m "commit #$i" &&
17 git notes edit -m "note #$i" || return 1
21 test_expect_success
'many notes created correctly with git-notes' '
22 git log | grep "^ " > output &&
30 test_cmp expect output
33 test_expect_success
'many notes created with git-notes triggers fanout' '
34 # Expect entire notes tree to have a fanout == 1
35 git ls-tree -r --name-only refs/notes/commits |
39 ??/??????????????????????????????????????)
43 echo "Invalid path \"$path\"" &&