From unknown Sun Jun 15 08:33:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#3088 <3088@debbugs.gnu.org> To: bug#3088 <3088@debbugs.gnu.org> Subject: Status: 23.0.92; vc-git loses track of the current working directory Reply-To: bug#3088 <3088@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:33:03 +0000 retitle 3088 23.0.92; vc-git loses track of the current working directory reassign 3088 emacs submitter 3088 Daiki Ueno severity 3088 normal tag 3088 patch thanks From daiki.ueno@gmail.com Thu Apr 23 00:06:03 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Apr 2009 07:06:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3N75sLd024098 for ; Thu, 23 Apr 2009 00:05:55 -0700 Received: from mail.gnu.org ([199.232.76.166]:57125 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lwt0M-0004Yz-0Q for emacs-pretest-bug@gnu.org; Thu, 23 Apr 2009 03:05:54 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lwt0K-0000I5-3b for emacs-pretest-bug@gnu.org; Thu, 23 Apr 2009 03:05:53 -0400 Received: from mx20.gnu.org ([199.232.41.8]:52634) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lwt0J-0000Hx-GC for emacs-pretest-bug@gnu.org; Thu, 23 Apr 2009 03:05:51 -0400 Received: from wf-out-1314.google.com ([209.85.200.173]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lwt0I-0003iQ-43 for emacs-pretest-bug@gnu.org; Thu, 23 Apr 2009 03:05:50 -0400 Received: by wf-out-1314.google.com with SMTP id 23so314608wfg.24 for ; Thu, 23 Apr 2009 00:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:user-agent:mime-version:content-type; bh=QxXngU4bosMzXXgvc6RsjrJR57mmoTRbh3ZgqwRveOU=; b=Q9LMmkOruqUmYhGvQiCJMEP/Gnaq2s3laIT8JUnP2qEKst1KhrUYuFi+h5NcBo7w3B 6HPpA0LRYTIRpZRNeSLWadPoisDjsD5d+mlInTYvdBDB70zvyt/YDpD9MY3j7yXtdJrQ xDlDPUVtqaRQDfYWYYOp4re4HHSQoxY0vGyeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:user-agent:mime-version :content-type; b=sr0SKoUkzWYRYYF6zlh/stsQTWCTTKrgG8UQRhHbX01LMyvH5v1mPJS54zFjfsKtz4 YOBW0IWuAUcMgggJ5yWsAOvg0YiuI+xKWzOS3hhPokADkXkSiu/a0HSdvETXWI0pDyKo tueQ+wkl77dmTf/bdgrJGBmAsZu/KFO5d+NhA= Received: by 10.142.132.2 with SMTP id f2mr233874wfd.171.1240470348199; Thu, 23 Apr 2009 00:05:48 -0700 (PDT) Received: from p360 ([150.82.175.84]) by mx.google.com with ESMTPS id k37sm27555784rvb.8.2009.04.23.00.05.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Apr 2009 00:05:47 -0700 (PDT) Sender: Daiki Ueno From: Daiki Ueno To: emacs-pretest-bug@gnu.org Cc: rfrancoise@debian.org Subject: 23.0.92; vc-git loses track of the current working directory Date: Thu, 23 Apr 2009 16:05:38 +0900 Message-ID: <877i1bhmt9.fsf@broken.deisui.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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: y C-p 1 0 q C-p C-p C-p C-p C-p C-p C-p g C-p g C-x b * t r C-g C-p g C-n g 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 g C-p 1 0 T S q C-a C-p C-p g C-n C-n C-a g C-n C-n C-n C-n C-g C-p g C-p C-p g g C-p C-p C-p C-p C-p C-p C-p g g g g g g C-p C-p C-p 1 0 T S C-n C-n C-n C-n C-n C-n C-n SPC p p q C-a C-p C-p C-p g C-n C-a g C-p C-p C-p C-p C-p C-p C-p C-n g C-p 1 0 T S C-n C-n C-n C-n C-n C-n C-n C-n C-a SPC q C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n g g C-p C-p C-p C-p C-p C-p g C-p g C-n C-n C-n C-n C-n C-n C-n g C-p C-p C-p g C-p 1 0 T S q C-p C-p C-p C-p C-p g C-p C-x C-c C-g x r e p o r 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 From dann@godzilla.ics.uci.edu Thu Apr 23 08:04:46 2009 Received: (at 3088) by emacsbugs.donarmstrong.com; 23 Apr 2009 15:04:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.0 required=4.0 tests=HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3NF4beY014588; Thu, 23 Apr 2009 08:04:38 -0700 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n3NF3kUN002024; Thu, 23 Apr 2009 08:03:46 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n3NF3j7x024309; Thu, 23 Apr 2009 08:03:45 -0700 (PDT) Date: Thu, 23 Apr 2009 08:03:45 -0700 (PDT) Message-Id: <200904231503.n3NF3j7x024309@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Daiki Ueno Cc: 3088@debbugs.gnu.org, rfrancoise@debian.org Subject: Re: bug#3088: 23.0.92; vc-git loses track of the current working directory References: <877i1bhmt9.fsf@broken.deisui.org> X-Debbugs-No-Ack: yes In-Reply-To: <877i1bhmt9.fsf@broken.deisui.org> (Daiki Ueno's message of "Thu, 23 Apr 2009 16:05:38 +0900") Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n3NF3kUN002024 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu merge 1589 3088 quit Daiki Ueno 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 25 21:20:59 2010 Received: (at control) by debbugs.gnu.org; 26 Jan 2010 02:20:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZb34-000653-W7 for submit@debbugs.gnu.org; Mon, 25 Jan 2010 21:20:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZb33-00064y-7n for control@debbugs.gnu.org; Mon, 25 Jan 2010 21:20:57 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NZb2z-0000SS-Pa; Mon, 25 Jan 2010 21:20:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19294.20869.773000.789691@fencepost.gnu.org> Date: Mon, 25 Jan 2010 21:20:53 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: Oj=Jkw@Sm(I2TeFMTWlSoQb>vVl7"X??>dxbdx9w\Q8kfaJxwqvZi%j4MqO}#;`5qJ]FXK X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) merge 3018 3038 reassign 1589 emacs merge 1589 3088 unarchive 3198 forcemerge 3198 1089 From unknown Sun Jun 15 08:33:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 25 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator