Re: [PATCH v16 6/7] bisect: add tests for the --no-checkout option.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon Seymour <jon.seymour@xxxxxxxxx> writes:

> @@ -616,6 +628,14 @@ cat > expected.missing-tree.default <<EOF
>  fatal: unable to read tree 39f7e61a724187ab767d2e08442d9b6b9dab587d
>  EOF
>  
> +check_same()
> +{
> +    echo "Checking $1 is the same as $2" &&
> +    git rev-parse "$1" > expected.same &&
> +    git rev-parse "$2" > expected.actual &&
> +    test_cmp expected.same expected.actual

Please indent with tabs; I know some existing lines in this file needs
fixing in a separate patch, but we do not have to make it worse.

> +test_expect_success 'bisect: demonstrate identification of damage boundary' "
> +	git bisect reset &&
> +	git checkout broken &&
> +	git bisect start broken master --no-checkout &&
> +	git bisect run sh -c '
> +		GOOD=$(git for-each-ref "--format=%(objectname)" refs/bisect/good-*) &&

I have a suspicion that the dq around the format=%(...) here does not do
what you seem to think; doesn't it just step outside of the dq context of
the second parameter of the outermost test_expect_success?  Wouldn't your
shell see

	git for-each-ref --format=%(objectname)

without dq and barf on () as a consequence?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]