From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18788: 24.4; vc-git-working-revision vs mode-line gives error Date: Mon, 02 Feb 2015 15:10:54 +0200 Message-ID: <54CF775E.2090408@yandex.ru> References: <87wq7sfqtt.fsf@fsfe.org> <86zjaqo52x.fsf@yandex.ru> <87twz7hzae.fsf@mm.st> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1422882743 14194 80.91.229.3 (2 Feb 2015 13:12:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 13:12:23 +0000 (UTC) Cc: 18788@debbugs.gnu.org To: Kevin Brubeck Unhammer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 02 14:12:19 2015 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 1YIGnZ-00021T-Ll for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 14:12:17 +0100 Original-Received: from localhost ([::1]:54559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIGnY-0001m0-PZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 08:12:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIGnQ-0001ke-8s for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 08:12:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIGnL-0000MP-6A for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 08:12:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIGnL-0000MJ-3Y for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 08:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YIGnK-0005lX-K8 for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 08:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Feb 2015 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18788 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18788-submit@debbugs.gnu.org id=B18788.142288266722092 (code B ref 18788); Mon, 02 Feb 2015 13:12:02 +0000 Original-Received: (at 18788) by debbugs.gnu.org; 2 Feb 2015 13:11:07 +0000 Original-Received: from localhost ([127.0.0.1]:60104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIGmR-0005kF-3J for submit@debbugs.gnu.org; Mon, 02 Feb 2015 08:11:07 -0500 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:38256) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIGmO-0005ji-SA for 18788@debbugs.gnu.org; Mon, 02 Feb 2015 08:11:05 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id k14so38635495wgh.8 for <18788@debbugs.gnu.org>; Mon, 02 Feb 2015 05:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=DvlekSZtncOqfFutjspC6UkBnX0GDoWewLtdqSxBLJs=; b=f1aNl2FjNGmVWY100eZJJM9V9Yuboy6Ii98g6zTPtmZtl01wkNVHl0d3MdvE135k5/ W4zvJwxBq1sDLtw6snfRhzWyp//iKv1a28aUhU6bnCmEd2nZpqOhTuhomAL9llQMPzc1 pvmKGH0pwWWU2c/bT+3iDMGaZvQLMpUdKlQbQjUxnOVk5JT0DN5D40EWq6XO0loXuPvr yNRGLGCHljVIUCpUrIR6eWvSjdIw3OSNiWnJf234538uEUBsLPrCZpIunTYQ5x/R0P5d IjEO7l8e/kvPmVSsNvi9UTRPNZUOosB/8HtRAg0F5h+udFEoMauYaG+1Hz6AlsK2SaWV 42LQ== X-Received: by 10.194.60.235 with SMTP id k11mr43318379wjr.131.1422882659220; Mon, 02 Feb 2015 05:10:59 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id e18sm27825891wjz.27.2015.02.02.05.10.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 05:10:58 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <87twz7hzae.fsf@mm.st> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:98976 Archived-At: On 01/31/2015 03:09 PM, Kevin Brubeck Unhammer wrote: > The repo I've seen it with under ~ if that makes any difference (ie. > ~/.git) – I can't remember if I've seen it other places. Is '~/.git' the name of the directory under version control? That could be the cause of your problem: there is a directory with this name in (almost) every Git repository, and it's used to store all version control information. Git could be getting confused by this name. > I get > > fatal: Not a git repository: .git This points to the above explanation. However, it's odd that you can't reproduce the problem reliably. > Notably, this only happens with files that are in subdirectories of ~ > (but still tracked by the ~ repo), not with files that are directly > inside ~. E.g. it happens with ~/org/gtd.org, but not with ~/.gitignore. Did that happen with files inside ~/org/gtd.org? Was the error message the same? > When I restarted emacs to see if it had anything to do with my init.el, > the bug was gone again. Yeah, I think we'll need a solid reproduction to fix it.