2016-08-26 22:20 GMT+02:00 Junio C Hamano <gits...@pobox.com>:
> 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
>>> 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!
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html