X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9301-fast-import-notes.sh;h=83acf68bc3c19770eb690ece139892ca75329216;hb=113e828d3893f31ef72dd8287e95da9fa2287110;hp=463254c72734beaf74948b6c424367ef4fea9d1a;hpb=40ffc49876611150104102d59a35d865e4670bd7;p=git.git diff --git a/t/t9301-fast-import-notes.sh b/t/t9301-fast-import-notes.sh index 463254c72..83acf68bc 100755 --- a/t/t9301-fast-import-notes.sh +++ b/t/t9301-fast-import-notes.sh @@ -505,9 +505,63 @@ test_expect_success 'verify that non-notes are untouched by a fanout change' ' test_cmp expect_non-note3 actual ' + +# Change the notes for the three top commits +test_tick +cat >input < $GIT_COMMITTER_DATE +data <>input <>expect < actual && + test_cmp expect actual + +' + +test_expect_success 'verify that changing notes respect existing fanout' ' + + # None of the entries in the top-level notes tree should be a full SHA1 + git ls-tree --name-only refs/notes/many_notes | + while read path + do + if test $(expr length "$path") -ge 40 + then + return 1 + fi + done + +' + remaining_notes=10 test_tick -cat >>input <input < $GIT_COMMITTER_DATE data <>input <