From: Dan Nicolaescu <dann@ics.uci.edu>
To: Gregor Zattler <telegraph@gmx.net>
Cc: 1408@emacsbugs.donarmstrong.com, rfrancoise@debian.org
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: Sun, 28 Dec 2008 10:28:40 -0800 (PST) [thread overview]
Message-ID: <200812281828.mBSISePg022740@mothra.ics.uci.edu> (raw)
In-Reply-To: <E1L3fzc-0007NA-N0@monty-python.gnu.org> (Gregor Zattler's message of "Fri, 21 Nov 2008 19:04:59 -0500")
severity 1408 wishlist
quit
Gregor Zattler <telegraph@gmx.net> writes:
> 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.
VC is not really prepared to deal with arbitrary commands on symlinks,
so it's not surprising that this corner case fails.
Changing a directory into a symlink between to VC operations is not
something that happens very frequently...
next prev parent reply other threads:[~2008-12-28 18:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-22 0:04 bug#1408: 23.0.60; git/*vc-dir*: does not register a symbolic link which befor was a directory with one singel file Gregor Zattler
2008-12-28 18:28 ` Dan Nicolaescu [this message]
2008-12-28 18:40 ` Processed: " Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812281828.mBSISePg022740@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=1408@emacsbugs.donarmstrong.com \
--cc=rfrancoise@debian.org \
--cc=telegraph@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.