emacs: make 'git-status' work with separate git dirs
commitf7d8e3d01f46ecfa5b4bc8c13640831d97a78236
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 22 Nov 2012 15:58:54 +0000 (22 16:58 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2012 17:34:28 +0000 (26 09:34 -0800)
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 <enrico.scholz@sigma-chemnitz.de>
Acked-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el