2016-08-26 22:20 GMT+02:00 Junio C Hamano [off-list ref]:
Because the whole thing is inside a double-quote pair, $() and $name
are all interpolated even before test_expect_success is called.
So the above becomes equivalent to
quoted
quoted
test_expect_success "two commits do not have the same ID" '
git commit --allow-empty -m first &&
one=5cb0d5ad05e027cbddcb0a3c7518ddeea0f7c286 &&
test_tick &&
git commit --allow-empty -m second &&
two=5cb0d5ad05e027cbddcb0a3c7518ddeea0f7c286 &&
test !=
'
I got it, thanks. My understanding in when a part is being interpreted
was obviously very wrong. Thanks again!