On Tue, Jan 12, 2016 at 04:58:04AM -0500, Jeff King wrote:
+test_expect_failure 'checkout away from d/f HEAD (to branch)' '
+ reset_to_df &&
+ git checkout master
+'
+
+test_expect_failure 'checkout away from d/f HEAD (to detached)' '
+ reset_to_df &&
+ git checkout --detach master
+'
These should be expect_success, of course (I had originally planned to
introduce the tests and then fix them later, but it all ended up in the
same patch).
Unfortunately, I think there is a case we're missing. I'm still digging,
but hope to have something soon. In the meantime, don't bother with v2.
:)
-Peff