From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.emacs.bugs Subject: bug#13866: [VC] =?UTF-8?Q?=E2=80=98vc-git-root=E2=80=99?= is too lax Date: Mon, 04 Mar 2013 10:50:50 +0100 Message-ID: <87zjyjijd1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1362392278 25555 80.91.229.3 (4 Mar 2013 10:17:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 10:17:58 +0000 (UTC) To: 13866@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 11:18:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCSTN-0000KR-Rz for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2013 11:18:22 +0100 Original-Received: from localhost ([::1]:59662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCST2-0003B1-D8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2013 05:18:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSSx-0003AH-IJ for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 05:17:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCSII-0003nl-Eg for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 05:06:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCS3h-00055n-2P for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 04:51:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UCS3u-0005ZJ-J2 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 04:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13866 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136239069921367 (code B ref -1); Mon, 04 Mar 2013 09:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Mar 2013 09:51:39 +0000 Original-Received: from localhost ([127.0.0.1]:58240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCS3X-0005YZ-40 for submit@debbugs.gnu.org; Mon, 04 Mar 2013 04:51:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44275) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCS3R-0005YH-09 for submit@debbugs.gnu.org; Mon, 04 Mar 2013 04:51:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCS35-0004vI-KB for submit@debbugs.gnu.org; Mon, 04 Mar 2013 04:51:13 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:52371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCS35-0004uz-Eh for submit@debbugs.gnu.org; Mon, 04 Mar 2013 04:51:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCS33-0007GJ-4B for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 04:51:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCS30-0004ty-Vr for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 04:51:09 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCS30-0004tt-Sd for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2013 04:51:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41850) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1UCS30-0001wR-Es for bug-emacs@gnu.org; Mon, 04 Mar 2013 04:51:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCS2v-0004rs-N8 for bug-emacs@gnu.org; Mon, 04 Mar 2013 04:51:06 -0500 Original-Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=34414 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCS2v-0004p3-Fr for bug-emacs@gnu.org; Mon, 04 Mar 2013 04:51:01 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 7646FCC97 for ; Mon, 4 Mar 2013 10:50:51 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oyjL7osBH5Iq for ; Mon, 4 Mar 2013 10:50:51 +0100 (CET) Original-Received: from pluto (unknown [193.50.110.91]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 413BEC0D0 for ; Mon, 4 Mar 2013 10:50:51 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?UTF-8?Q?Vent=C3=B4se?= an 221 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72067 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, =E2=80=98vc-git-root=E2=80=99 as found in Emacs 24.2.1 is too lax: when cal= led 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: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (defun vc-git-root (file) (lexical-let ((root (vc-find-root file ".git"))) (and (file-in-directory-p root "objects") root))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpUaGFua3MsDQpMdWRv4oCZLg0K --=-=-=--