GNU bug report logs - #5078
23.1.50; vc broken

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 30 Nov 2009 11:50:03 UTC

Severity: normal

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 5078 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Leo <sdl.web <at> gmail.com>
Cc: 5078 <at> debbugs.gnu.org
Subject: Re: bug#5078: 23.1.50; vc broken
Date: Mon, 30 Nov 2009 18:00:05 -0800 (PST)
Leo <sdl.web <at> gmail.com> writes:

  > On 2009-12-01 00:07 +0000, Dan Nicolaescu wrote:
  > > Please try to debug that function and figure out why it returns 'up-to-date. 
  > 
  > 
  > I set vc-git-state with edebug and then made some changes to the file.
  > The following are some return values inside vc-git-state. Does it give a
  > clue?
  > 
  > 1. (vc-git--call nil "add" "--refresh" "--" (file-relative-name file))
  > 
  > returns result: 128 (#o200, #x80, ?\200)
  > 
  > 2. (vc-git--run-command-string file "diff-index" "-z" "HEAD" "--")
  > 
  > returns empty string ""

It seems that git thinks there's no change, if you change that line to:

(vc-git--run-command-string file "diff-index" "-p" "-z" "HEAD" "--")

does it return the diff you've shown in a previous message?

  > If I clone the repo, the problem goes away.

Maybe something is corrupted in your tree, maybe comparing the 2 .git
directories could give some clues.



This bug report was last modified 15 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.