Re: [PATCH v2 3/4] test-lib-functions: add helper for trailing hash
On Mon, Dec 12, 2022 at 04:31:16PM +0000, Derrick Stolee via GitGitGadget wrote:
Show 10 quoted lines
> 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
> '