From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: git status: small difference between stating whole repository and small subdirectory Date: Mon, 20 Feb 2012 11:57:24 -0800 Message-ID: <7vmx8dl1ln.fsf@alter.siamese.dyndns.org> References: <8762f9k5sg.fsf@thomas.inf.ethz.ch> <20120215190318.GA5992@sigill.intra.peff.net> <20120216192001.GB4348@sigill.intra.peff.net> <20120217203755.GA30114@sigill.intra.peff.net> <7vaa4hrtbe.fsf@alter.siamese.dyndns.org> <20120217222912.GC31830@sigill.intra.peff.net> <20120220140653.GC5131@sigill.intra.peff.net> <87ty2l38ay.fsf@thomas.inf.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff King , Piotr Krukowiecki , Junio C Hamano , Git Mailing List , Nguyen Thai Ngoc Duy To: Thomas Rast X-From: git-owner@vger.kernel.org Mon Feb 20 20:57:34 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RzZMa-0000pq-G3 for gcvg-git-2@plane.gmane.org; Mon, 20 Feb 2012 20:57:32 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824Ab2BTT51 (ORCPT ); Mon, 20 Feb 2012 14:57:27 -0500 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:56696 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134Ab2BTT50 (ORCPT ); Mon, 20 Feb 2012 14:57:26 -0500 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 576A67B95; Mon, 20 Feb 2012 14:57:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=NClvZNze+YCMTjgrG6WWHX1cuYQ=; b=S+vyg5 sThjU5kyuBfI6kfN428h82StrLRBgjA4L2TtZInMxW0eLRcIdtx9YemvvTheRYF0 L54NiBY2LkeTdHoIx9wO/mGfe7XhnVgML0zOgihu7LUusCpfPOB1+0kMpowFKz07 VAKE1iZYPPYQsAhabqPJfEpvm8mLf+4Waw77I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=nnY8GIFqD3dy51SAor64ez82/iuj52fy EHqNaqFpetazPAG1Q6yAexCAY0wFhOuFA0p3m7jzOIWDbN+A+Dc1zmYV/frrF+uy i+EV+0u183huElQcdgcEoINqxMc1i+Gk430YcD/l34N8tgrY2D1+CaSk2rR4uTe7 BkAMlFK4Kqc= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 4F9317B94; Mon, 20 Feb 2012 14:57:26 -0500 (EST) Received: from pobox.com (unknown [76.102.170.102]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id D1C107B93; Mon, 20 Feb 2012 14:57:25 -0500 (EST) In-Reply-To: <87ty2l38ay.fsf@thomas.inf.ethz.ch> (Thomas Rast's message of "Mon, 20 Feb 2012 15:09:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 1C643504-5BFD-11E1-9870-9DB42E706CDE-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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.