From: Jonathan Nieder Date: Mon, 25 Mar 2013 22:15:13 GMT Subject: Re: git ate my home directory :-( Message-ID: <20130325221512.GI1414@google.com> In-Reply-To: <5150CB34.1030008@nod.at> Richard Weinberger wrote: > Okay, I have to set GIT_DIR _and_ GIT_WORK_TREE to make my scripts safe again? > I've always set only GIT_DIR because it just worked (till today...). chdir-ing into the git repo without setting any GIT_* vars is probably the simplest way to go.