Johannes Schindelin [off-list ref] writes:
It is allowed to call
$ git --git-dir=../ --work-tree=. bla
when you really want to. In this case, you are both in the git directory
and in the working tree.
The earlier handling of this situation was seriously bogus. For regular
working tree operations, it checked if inside git dir. That makes no
sense, of course, since the check should be for a work tree, and nothing
else.
Fix that.
I do not doubt this patch makes the above command line to work
better, but I have to wonder how that layout is useful. Care to
give a use case or two in the commit log message?