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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3088 in the body.
You can then email your comments to 3088 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3088; Package emacs. (Thu, 23 Apr 2009 07:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daiki Ueno <ueno <at> unixuser.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 23 Apr 2009 07:15:03 GMT) Full text and rfc822 format available.

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

From: Daiki Ueno <ueno <at> unixuser.org>
To: emacs-pretest-bug <at> gnu.org
Cc: rfrancoise <at> debian.org
Subject: 23.0.92; vc-git loses track of the current working directory
Date: Thu, 23 Apr 2009 16:05:38 +0900
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:

--8<---------------cut here---------------start------------->8---
VC backend : Git
Working dir: /tmp/a/b/
Branch     : master

                         ./
                         b/
     edited              b/c

--8<---------------cut here---------------end--------------->8---

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?

In GNU Emacs 23.0.92.1 (i486-pc-linux-gnu, GTK+ Version 2.14.7)
 of 2009-04-12 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20090411-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.92/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  which-function-mode: t
  icomplete-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> y C-p 1 0 <return> q C-p C-p C-p C-p C-p C-p 
C-p <escape> g C-p <escape> g C-x b * t r C-g C-p <escape> 
g <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<down-mouse-1> <mouse-1> C-n <escape> g <escape> g 
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p <escape> 
g C-p 1 0 <return> T S q <down-mouse-1> <mouse-1> C-a 
C-p C-p <escape> g <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> C-n C-n C-a <escape> g C-n C-n C-n C-n <escape> 
C-g C-p <escape> g C-p C-p <help-echo> <help-echo> 
<help-echo> <down-mouse-1> <mouse-1> <escape> g <escape> 
g C-p C-p C-p C-p C-p C-p C-p <escape> g <escape> g 
<escape> g <escape> g <escape> g <escape> g C-p C-p 
C-p 1 0 <return> T S C-n C-n C-n C-n C-n C-n C-n SPC 
p p q <help-echo> <down-mouse-1> <mouse-1> C-a C-p 
C-p C-p <escape> g <down-mouse-1> <mouse-1> C-n C-a 
<escape> g C-p C-p C-p C-p C-p C-p C-p C-n <escape> 
g C-p 1 0 <return> T S C-n C-n C-n C-n C-n C-n C-n 
C-n C-a SPC q <down-mouse-1> <mouse-1> C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-n <escape> g <escape> g C-p 
C-p C-p C-p C-p C-p <escape> g C-p <escape> g C-n C-n 
C-n C-n C-n C-n C-n <escape> g C-p C-p C-p <escape> 
g C-p 1 0 <return> <down-mouse-1> <mouse-1> T S q C-p 
C-p C-p C-p C-p <escape> g C-p <down-mouse-1> <mouse-1> 
C-x C-c C-g <escape> x r e p o r <tab> <return>

Recent messages:
nnimap: Updating info for nnimap:INBOX...done
Retrieving newsgroup: nntp+gmane:gmane.emacs.bugs...
Fetching headers for nntp+gmane:gmane.emacs.bugs...done
Generating summary...done
Auto-saving...
Opening nntp server on gmane...done
Auto-saving...
Garbage: 
Process imap finished
* BYE Disconnected for inactivity.
Quit

Regards,
-- 
Daiki Ueno




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3088; Package emacs. (Thu, 23 Apr 2009 15:10:04 GMT) Full text and rfc822 format available.

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

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: Re: 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.




Merged 1589 2055 2641 3088 3359 4207. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 02:21:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 25 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

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.