From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.bugs Subject: bug#12804: 24.1; vc-git does not recognize file under version control Date: Sun, 4 Nov 2012 19:44:34 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352083265 4697 80.91.229.3 (5 Nov 2012 02:41:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 02:41:05 +0000 (UTC) To: 12804@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 03:41:14 2012 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 1TVCcj-0005rO-Fc for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 03:41:13 +0100 Original-Received: from localhost ([::1]:50513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVCca-0007Co-O3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 21:41:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVCcX-0007Ci-7n for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 21:41:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVCcW-0006RE-2H for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 21:41:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVCcV-0006R9-VF for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 21:40:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TVCfS-0007Ue-H5 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 21:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tom Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Nov 2012 02:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135208339028736 (code B ref -1); Mon, 05 Nov 2012 02:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2012 02:43:10 +0000 Original-Received: from localhost ([127.0.0.1]:49462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVCea-0007TP-Sj for submit@debbugs.gnu.org; Sun, 04 Nov 2012 21:43:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52806) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV6Fj-0006kP-HG for submit@debbugs.gnu.org; Sun, 04 Nov 2012 14:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV6Cm-0003Du-Dd for submit@debbugs.gnu.org; Sun, 04 Nov 2012 14:50:02 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:34081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6Cm-0003Dp-Ae for submit@debbugs.gnu.org; Sun, 04 Nov 2012 14:50:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6Cl-0006ac-Cj for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 14:50:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV6Cj-0003Bb-8t for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 14:49:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6Cj-0003B9-2l for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 14:49:57 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TV6Cp-0005nj-OJ for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 20:50:03 +0100 Original-Received: from 94-21-239-84.pool.digikabel.hu ([94.21.239.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2012 20:50:03 +0100 Original-Received: from adatgyujto by 94-21-239-84.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2012 20:50:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.239.84 (Opera/9.80 (Windows NT 6.1; U; IBM EVV/3.0/EAK01AG9/LE; en) Presto/2.10.289 Version/12.02) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 04 Nov 2012 21:43:07 -0500 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:66457 Archived-At: I have a file under git and vc does not recognize it. The path of the file has a space in it and I'm on Windows, that is the cause of the problem I suspect. E.g. this is the path under git (note the space in "project name"): project name/src/file.java I narrowed the problem to vc-git-registered which returns nil on the file. This is the relevant check in the function and my guess is name falls to two pieces when git is invoked because it has a space in it and there are no quotes around it, and therefore ls-files returns nothing, because it sees two non existent paths (the two half pieces of the path with space): (vc-git--out-ok "ls-files" "-c" "-z" "--" name) In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: HUN value of $XMODIFIERS: nil locale-coding-system: cp1250 default enable-multibyte-characters: t