Re: [PATCH v2 2/2] fsck: avoid looking at NULL blob->object
Show 12 quoted lines
> +test_expect_success 'fsck detects non-blob .gitmodules' '
> + git init non-blob &&
> + (
> + cd non-blob &&
> +
> + # As above, make the funny tree directly to avoid index
> + # restrictions.
> + mkdir subdir &&
> + cp ../.gitmodules subdir/file &&
> + git add subdir/file &&
> + git commit -m ok &&
> + tree=$(git ls-tree HEAD | sed s/subdir/.gitmodules/ | git mktree) &&
And $tree won't be used here, either.
Show 10 quoted lines
> +
> + test_must_fail git fsck 2>output &&
> + grep gitmodulesBlob output
> + )
> +'
> +
> test_done
> --
> 2.18.0.rc1.446.g4486251e51
>