GNU bug report logs - #3088
23.0.92; vc-git loses track of the current working directory

Previous Next

Package: emacs;

Reported by: Daiki Ueno <ueno <at> unixuser.org>

Date: Thu, 23 Apr 2009 07:15:03 UTC

Severity: normal

Tags: patch

Merged with 1589, 2055, 2641, 3359, 4207

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Daiki Ueno <ueno <at> unixuser.org>
Cc: 3088 <at> debbugs.gnu.org, rfrancoise <at> debian.org
Subject: bug#3088: 23.0.92; vc-git loses track of the current working directory
Date: Thu, 23 Apr 2009 08:03:45 -0700 (PDT)
merge 1589 3088
quit

Daiki Ueno <ueno <at> unixuser.org> writes:

  > Hi,
  > 
  > Consider the following directory layout of a git working copy:
  > 
  > a
  > |-- .git
  > `-- b
  >     `-- c
  > 
  > where "c" is a file already added into the git index.
  > 
  > Then, go under "b", run "emacs -Q", modify "c", and M-x vc-dir.
  > Emacs shows:
  > 
  > VC backend : Git
  > Working dir: /tmp/a/b/
  > Branch     : master
  > 
  >                          ./
  >                          b/
  >      edited              b/c
  > 
  > 
  > This looks weird and most of the VC commands against "b/c" fails.
  > For example, when I type "i" it fails with:
  > 
  >   error: b/b/c: does not exist and --remove not passed
  >   fatal: Unable to process path b/b/c
  > 
  > In the minibuffer:
  > 
  >   vc-do-command: Running git update-index --add -- b/c...FAILED (status 128)
  > 
  > It looks like that vc-git should chdir to the GIT_DIR before running
  > "git update-index", or remove "b/" from the relative path?

Thanks, this is the same issue as bug 1589.




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

Previous Next


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