From: SZEDER Gábor Date: Mon, 12 Dec 2022 18:14:38 GMT Subject: Re: [PATCH v2 3/4] test-lib-functions: add helper for trailing hash Message-ID: <20221212181438.GA3411@szeder.dev> In-Reply-To: <813e81a058227bd373cec802e443fcd677042fb4.1670862677.git.gitgitgadget@gmail.com> On Mon, Dec 12, 2022 at 04:31:16PM +0000, Derrick Stolee via GitGitGadget wrote: > diff --git a/t/t1600-index.sh b/t/t1600-index.sh > index 45feb0fc5d8..55914bc3506 100755 > --- a/t/t1600-index.sh > +++ b/t/t1600-index.sh > @@ -68,6 +68,9 @@ test_expect_success 'out of bounds index.version issues warning' ' > test_expect_success 'index.skipHash config option' ' > rm -f .git/index && > git -c index.skipHash=true add a && > + test_trailing_hash .git/index >hash && > + echo $(test_oid zero) >expect && Nit: test_oid zero >expect > + test_cmp expect hash && > git fsck > '