Subject: bug#13866: [VC] ‘vc-git-root’ is too lax

From: [email-masked] (Ludovic Courtès)
Date: Mon, 04 Mar 2013 10:50:50 +0100

Hello,

‘vc-git-root’ as found in Emacs 24.2.1 is too lax: when called from a
non-Git directory under $HOME, it ends up returning ~/ because users
normally have a ~/.git directory holding a config file.

A better definition would be something like this:

Thanks,
Ludo’.