From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#26066: 26.0.50; vc-git-status gives wrong result Date: Tue, 14 Mar 2017 09:45:36 -0400 Message-ID: <87y3w855vj.fsf@users.sourceforge.net> References: <9bf82bf1-fefa-ab84-bac1-cf748ae5ccfb@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489499117 24946 195.159.176.226 (14 Mar 2017 13:45:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2017 13:45:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 26066@debbugs.gnu.org To: Jonathan Ganc Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 14 14:45:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnmlB-0005WL-3N for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Mar 2017 14:45:09 +0100 Original-Received: from localhost ([::1]:59583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnmlF-0002ye-Jo for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Mar 2017 09:45:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnml7-0002xf-2O for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2017 09:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnml4-0002dT-E3 for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2017 09:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnml4-0002dK-B1 for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2017 09:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cnml4-0006m2-1L for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2017 09:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Mar 2017 13:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26066 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26066-submit@debbugs.gnu.org id=B26066.148949906625983 (code B ref 26066); Tue, 14 Mar 2017 13:45:01 +0000 Original-Received: (at 26066) by debbugs.gnu.org; 14 Mar 2017 13:44:26 +0000 Original-Received: from localhost ([127.0.0.1]:55019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnmkU-0006kx-1L for submit@debbugs.gnu.org; Tue, 14 Mar 2017 09:44:26 -0400 Original-Received: from mail-io0-f193.google.com ([209.85.223.193]:33199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnmkS-0006kf-EE; Tue, 14 Mar 2017 09:44:24 -0400 Original-Received: by mail-io0-f193.google.com with SMTP id f84so16431994ioj.0; Tue, 14 Mar 2017 06:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ioXi/d8ggGNeZDc/TLsuwjKfbgD0BxpHuyZhLHDlwQg=; b=p3bQ+q9KYdJQsE/Z1nAXw5687g1AdkRieO+T3ajENhPEQYCoUL+4MseV6erjZ1rtD+ 0tQbjDhXxH1hKhGSh26JeA1gKNhMEr+YTM7+h+YeGzWqA7CwqrRjHRGckELBq4DSdumW sEBRjkOr5Lg1QhfGKxDOb02Jl8IqZRUinHFfSrDjRuHr37e2Pla8h/meII/4pYg2x0IO TG36PSkYjzi614D5s0ozcNBYssNZXJVrkw5ywNJ2RnMsPjCjQLgXTZ9Tw2HTqy5LsrT4 4AkrQU3C4wq4qKnFPUc2YO4bU3rIq1UmVTPkbiREs+uBDYWvVAz5ol5M+INq3+A4XBy3 20BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=ioXi/d8ggGNeZDc/TLsuwjKfbgD0BxpHuyZhLHDlwQg=; b=d2fMEpjrNDvO+Yb5ZqpD9+jMyAKCYofP8dOI0OXPULELZ78r76d6RLf96tLm8ogSD9 qhrz6VEoR8nNsJg0/DbDkuev+s6r52goRto5PfaYESAG6KeJg0sNpBrVsc1fgltQoZ9m LhZe6V8yWhmq+o+eX8hIXSAUj3n8ePPoIknkA8s7E9o9oDDBoMcXX9cw2PArQZBIbKLJ IVyhlrJ+xuOq1c0K0eK5jkObQDwRiygKXm6AdwD4EVl26ZUvFWHDaFTxsYvaAEuU2ZWM OPKnzKD9I7AUS9/sUKS7mjceZ5jbTstMBprcE4Mq01S5dmlhFrBzOE294KWlZUdNnNik WgKg== X-Gm-Message-State: AMke39mfK4dP1cCeYND+w/mB2aruYFAQ9mptT4FS2e0uxggvKMWt6FSzf9/oIDEuvvec2A== X-Received: by 10.107.181.10 with SMTP id e10mr32969292iof.156.1489499058795; Tue, 14 Mar 2017 06:44:18 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f196sm215115itc.2.2017.03.14.06.44.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Mar 2017 06:44:18 -0700 (PDT) In-Reply-To: <9bf82bf1-fefa-ab84-bac1-cf748ae5ccfb@gmail.com> (Jonathan Ganc's message of "Sat, 11 Mar 2017 21:42:46 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:130571 Archived-At: retitle 26066 vc-git-status gives wrong result when called from outside repository severity 26066 minor found 26066 24.5 found 26066 25.2 quit (list (let ((default-directory "/")) (require 'vc-git) (vc-git-state "/home/npostavs/src/emacs/emacs-master/README")) (let ((default-directory "/home/npostavs/src/emacs/emacs-master/")) (require 'vc-git) (vc-git-state "README"))) ;=> (added up-to-date) Jonathan Ganc writes: > I get this same behavior on emacs 24.5, 25.1. I have some ideas about > how to fix the problems but I want to make sure this isn't somehow the > expected behavior. I doubt this particular behaviour is expected, but it's probably unexpected that you would call vc-git-status from outside the repo. If you can fix things to handle this case without harming the normal case, that sounds fine to me.