[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3088: 23.0.92; vc-git loses track of the current working directory
From: |
Dan Nicolaescu |
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@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.