On Tue, Sep 21, 2010 at 9:17 AM, Bruce Korb <bk...@gnu.org> wrote: > Hi, > > On Tue, Sep 21, 2010 at 8:50 AM, Matt Rice <ratm...@gmail.com> wrote: >>> There is an approved way, but it is really obtuse: >>> $(\cd ./$(git rev-parse --show-cdup) && pwd -P) >>> Far from the first thing that comes to mind. >> >> hmm, even this doesn't seem to work when the GIT_DIR >> environment variable is set > > If you google for "git root" you get that answer and it seems to work > for me in a number of environments. The GIT folks apparently > have a little work to do....I like my alias.
yeah, I found you'd also need to set GIT_WORK_TREE in addition to GIT_DIR in this case aka my problem.