From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1408: 23.0.60; git/*vc-dir*: does not register a symbolic link which befor was a directory with one singel file Date: Fri, 21 Nov 2008 19:04:59 -0500 Message-ID: Reply-To: Gregor Zattler , 1408@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1227333975 20571 80.91.229.12 (22 Nov 2008 06:06:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2008 06:06:15 +0000 (UTC) Cc: rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 22 07:07:17 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L3leF-0000j7-RE for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2008 07:07:16 +0100 Original-Received: from localhost ([127.0.0.1]:59941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3ld6-0006W3-OZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2008 01:06:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3g4j-0000Mn-Of for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 19:10:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3g4j-0000MY-Cw for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 19:10:13 -0500 Original-Received: from [199.232.76.173] (port=59760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3g4j-0000MU-2P for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 19:10:13 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39750) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3g4i-0007ky-TQ for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 19:10:13 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAM0A96t024751; Fri, 21 Nov 2008 16:10:10 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAM0A4Nv024182; Fri, 21 Nov 2008 16:10:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Gregor Zattler Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 22 Nov 2008 00:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1408 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122731230722936 (code B ref -1); Sat, 22 Nov 2008 00:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Nov 2008 00:05:07 +0000 Original-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 mAM050WT022010 for ; Fri, 21 Nov 2008 16:05:02 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:60078) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L3fzT-0000x2-R8 for emacs-pretest-bug@gnu.org; Fri, 21 Nov 2008 19:04:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L3fzc-0007NA-N0 for emacs-pretest-bug@gnu.org; Fri, 21 Nov 2008 19:04:59 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:44446) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L3fzc-0007N6-0Y for emacs-pretest-bug@gnu.org; Fri, 21 Nov 2008 19:04:56 -0500 Original-Received: (qmail invoked by alias); 22 Nov 2008 00:04:53 -0000 Original-Received: from unknown (EHLO localhost) [77.22.102.44] by mail.gmx.net (mp031) with SMTP; 22 Nov 2008 01:04:53 +0100 X-Authenticated: #6219957 X-Provags-ID: V01U2FsdGVkX1+n/E07iISnKKGO5nqqADcqCscM7ND0iYzPzWxo0C uzBBxpcFxvR95y X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 21 Nov 2008 19:10:13 -0500 X-Mailman-Approved-At: Sat, 22 Nov 2008 01:05:59 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22580 gmane.emacs.pretest.bugs:23390 Archived-At: Disclaimer: I'm new to version control, perhaps I do not understand the situation. These are the steps to reproduce the problem: $ mkdir vc-emacs-test $ cd vc-emacs-test $ git init Initialized empty Git repository in /tmp/vc-emacs-test/.git/ $ mkdir dir directory $ echo test >dir/test $ git add . $ git commit -a -m "one" Created initial commit cdd09ae: one 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 dir/test $ rm -rf dir $ ln -s directory dir $ emacs-snapshot -Q ^X v d now in buffer *vc-dir* looks like this: VC backend : Git Working dir: /tmp/vc-emacs-test/ Branch : master ./ unregistered dir dir/ removed dir/test move cursor on this line type 'i' to register. Following error messages are displayed: on the last line, copied from *Messages*: vc-do-command: Running git update-index --add -- dir...FAILED (status 128) In buffer *vc*: error: 'dir' appears as both a file and as a directory error: dir: cannot add to the index - missing --add option? fatal: Unable to process path dir I think this is a bug because emacs should handle this case (at least with a sensible message what to do). Actually this happend in a "real" scenario, I decided to reproduce a minimalistic example. Thank you for emacs and version control in emacs, Gregor In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-18 on del, modified by Debian (emacs-snapshot package, version 1:20081113-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.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/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: value of $LC_COLLATE: de_DE.utf8 value of $LC_CTYPE: de_DE.utf8 value of $LC_MESSAGES: POSIX value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: 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 blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x v d i C-x o C-SPC > w C-x b C-x 1 m m m i C-x o C-SPC > w C-x o C-x b C-g C-g C-x o m i i i C-x o i C-x o i C-x o u u i C-x o i C-x o i M-x r e p o r Recent messages: vc-do-command: Running git update-index --add -- dir...FAILED (status 128) Mark set Press C-c C-c when you are done editing. Registering (/tmp/vc-emacs-test/dir/test)... vc-do-command: Running git update-index --add -- dir/test...FAILED (status 128) Mark set Press C-c C-c when you are done editing. Registering (/tmp/vc-emacs-test/dir)... vc-do-command: Running git update-index --add -- dir...FAILED (status 128) Making completion list... [2 times]