Re: [PATCH 1/9] Add tests for git cat-file
> + test_expect_success \
> + "$type exists" \
> + "git cat-file -e $hello_sha1"
You mean $sha1 here, right?
> + test_expect_success \
> + "Type of $type is correct" \
> + "test $type = \"$(git cat-file -t $sha1)\""
This should escape the $(...) in all the tests. Like this:
"test $type = \"\$(git cat-file -t $sha1)\""
> +test_expect_success \
> + "Reach a blob from a tag pointing to it" \
> + "test \"$hello_content\" = \"$(git cat-file blob $tag_sha1)\""
And use single quotes without escaping the double-quotes here.
-- Hannes