Subject: Re: git ate my home directory :-(

From: Jonathan Nieder <[email-masked]>
Date: Mon, 25 Mar 2013 15:15:13 -0700

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.