From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Ganc Newsgroups: gmane.emacs.bugs Subject: bug#26066: 26.0.50; vc-git-status gives wrong result Date: Sat, 11 Mar 2017 21:42:46 -0500 Message-ID: <9bf82bf1-fefa-ab84-bac1-cf748ae5ccfb@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1489286723 18064 195.159.176.226 (12 Mar 2017 02:45:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 02:45:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: 26066@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 12 03:45:15 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 1cmtVM-0003CQ-MW for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 03:45:08 +0100 Original-Received: from localhost ([::1]:45386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmtVS-0006iJ-Fp for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 21:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmtVL-0006gt-RL for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:45:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmtVG-0001cQ-TL for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:45:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmtVG-0001cI-Pk for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmtVG-0002nZ-JH for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Ganc Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Mar 2017 02:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26066 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.148928669510725 (code B ref -1); Sun, 12 Mar 2017 02:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2017 02:44:55 +0000 Original-Received: from localhost ([127.0.0.1]:51901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmtV9-0002mv-A4 for submit@debbugs.gnu.org; Sat, 11 Mar 2017 21:44:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmtTM-0002jp-46 for submit@debbugs.gnu.org; Sat, 11 Mar 2017 21:43:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmtTF-0001D0-Ar for submit@debbugs.gnu.org; Sat, 11 Mar 2017 21:42:58 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmtTF-0001Cw-7R for submit@debbugs.gnu.org; Sat, 11 Mar 2017 21:42:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmtTD-0006aW-P8 for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:42:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmtT8-0001CF-SQ for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:42:55 -0500 Original-Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:33599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmtT8-0001CA-NV for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 21:42:50 -0500 Original-Received: by mail-qk0-x22e.google.com with SMTP id y76so203112761qkb.0 for ; Sat, 11 Mar 2017 18:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=/BeGPDOgZ/XK7q1zUi2/rNkN05j4f6oH8dXvHfOHqcs=; b=OADaOfVBQ8kxKtalErh7HHIXZ9AfeF3mXadcppJ5gzTDAjo/GKI5bOn1E5BuoU7CHv ZkV0Zr36Z/M4Fe1lRtx5QHtktRQwA5+N00oEIML+w44Nf1Dbr1HT4KMcUOfp0uApj1sv WB4fP0l/Nwf/iQFHlPDHbq57/SYN/g5XYAc4xmVQtcchZsru+rsbXX2ShN0iQNVULTDL HVjEazRePrmA6BDwHTJg7U/MXDjugwe83QYv+rMkzw2hCUNJ2Tq+LKwhMk1u2KDVyBJL De5u62vBd85PQsYw8SBYeMT52ACrh/Qkt5OM8L89y8WIt7g3GHUgp3DvR243ZPMqWOQ6 LQMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=/BeGPDOgZ/XK7q1zUi2/rNkN05j4f6oH8dXvHfOHqcs=; b=kobwjPTuhxUjcdkdCNO4Whou/7no0AGEn/64k7nwBBIPDAQTTPce7Q1WSYuMbnZz3B GxRKAhnUJK3vzlerFsSoRg0hRqFrUStqDenwROeD3MznexyVlfUUOVJh6O/dXfsTxz0a BMB8BeAHPhAV/xH2Qp+Pd6+0/5+dgKW4ZOfgKEXD4lpYVU6Z78+e9Cgtg9CUnNj4gamq Szbwx7KPBxdKo3y1Zf9iYm/D86KBlwcCBqmWp31uVlIwcGk2Ro4AqhFLK24JrUFnFl/g kPlr1j41cG+LvUx0jJc49siP0r2spuMapvKczFP03tqL9WytXxOH/sBBDSGJcgwl0E1l I5qA== X-Gm-Message-State: AMke39nH9StlCceRZ3YXHovLTTD3Dlrk0bjBxrl3gywiLarm/1gXriFnp9Lw/fzVBYE/aA== X-Received: by 10.55.17.99 with SMTP id b96mr26439545qkh.74.1489286568610; Sat, 11 Mar 2017 18:42:48 -0800 (PST) Original-Received: from [192.168.1.198] (static-98-118-34-152.bstnma.fios.verizon.net. [98.118.34.152]) by smtp.gmail.com with ESMTPSA id z4sm5525919qkc.22.2017.03.11.18.42.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Mar 2017 18:42:48 -0800 (PST) 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: Sat, 11 Mar 2017 21:44:55 -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:130504 Archived-At: **To reproduce:** First, we create a simple git repository in a shell: $ mkdir -p ~/Desktop/temp $ cd ~/Desktop/temp $ git init $ echo abc > file.txt $ git add . && git commit -a -m "Init" You can verify that the repository is up to date by running, e.g. 'git status'. Next, we load emacs -Q and run the following: (progn (setq default-directory "/") (require 'vc-git) (vc-git-state "/home/ganc/Desktop/temp/file.txt")) The response is `added'. It should be `up-to-date'. **Notes** 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. In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.20.9) of 2017-03-10 built on lcy01-22 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.10 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=-snapshot --with-modules=yes --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-snapshot-rvTCtk/emacs-snapshot-93192-26848af-emacs=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message puny seq byte-opt subr-x gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 96617 5698) (symbols 48 20192 1) (miscs 40 48 115) (strings 32 17613 4552) (string-bytes 1 565163) (vectors 16 14650) (vector-slots 8 482994 4091) (floats 8 48 68) (intervals 56 241 0) (buffers 976 11))