emacs: make 'git-status' work with separate git dirs
authorEnrico Scholz <redacted>
Thu, 22 Nov 2012 15:58:54 +0000 (16:58 +0100)
committerJunio C Hamano <redacted>
Mon, 26 Nov 2012 17:34:28 +0000 (09:34 -0800)
commitf7d8e3d01f46ecfa5b4bc8c13640831d97a78236
tree6f69ff022da38e3c27ebc719bf2a259a03f51637
parente8a1f5a2ae53805986b1b965e036450bdfc0c460
emacs: make 'git-status' work with separate git dirs

when trying 'M-x git-status' in a submodule created with recent (1.7.5+)
git, the command fails with

| ... is not a git working tree

This is caused by creating submodules with '--separate-git-dir' but
still checking for a working tree by testing for a '.git' directory.

The patch fixes this by relaxing the existing detection a little bit.

Signed-off-by: Enrico Scholz <redacted>
Acked-by: Alexandre Julliard <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/emacs/git.el
git clone https://git.99rst.org/PROJECT