From: Junio C Hamano Date: Mon, 20 Feb 2012 19:57:24 GMT Subject: Re: git status: small difference between stating whole repository and small subdirectory Message-ID: <7vmx8dl1ln.fsf@alter.siamese.dyndns.org> In-Reply-To: <87ty2l38ay.fsf@thomas.inf.ethz.ch> Thomas Rast writes: > test_expect_failure 'checkout gives cache-tree' ' > git checkout HEAD^ && > test_shallow_cache_tree > ' Depending on what state you start the checkout from, that is not a valid test. Some form of "git reset" before the checkout to ensure the initial state is needed.