On Mon, Sep 20, 2010 at 8:55 AM, Bruce Korb <bk...@gnu.org> wrote:

>> of determining whether you are
>> running from within a git repository, and there is no such command
>> as 'git root'.
>
> Sorry.  BitKeeper had it and the method for accomplishing it was
> too complicated, so I added an alias and forgot I'd done so:
> [alias]
>        root = !pwd -P
>
> 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

Reply via email to