From: Junio C Hamano Date: Sun, 04 Nov 2007 04:33:40 GMT Subject: Re: [PATCH] Add missing inside_work_tree setting in setup_git_directory_gently Message-ID: <7vir4ivdcr.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071103131806.GA25109@laptop> Nguyễn Thái Ngọc Duy writes: > When both GIT_DIR and GIT_WORK_TREE are set, and > setup_git_directory_gently() changes the current working > directory accordingly, it should also set inside_work_tree = 1. > > Without this, work_tree handling code in setup_git_directory() > will be activated. If you stay in root work tree (no prefix), > it does not harm. It does if you work from a subdirectory though. Please add automated test script for this, thanks.