If I git-annex add
a directory, with some files inside, and then move into the directory to execute git commit -m message
, then git commit
fails with: git-annex: git: createProcess: runInteractiveProcess: chdir: does not exist (No such file or directory)
. Why?
Notice that if I do the same operations within a standard git repository (not annex), then git commit
works with no problems, as expected.
As it is described above, this difference between git-annex and git seems a minor issue, but I got stuck into that for a while when I stumbled into it in a more complex scenario.
Steps to reproduce the issue:
> mkdir annex
> cd annex
/annex> git init
Initialized empty Git repository in /tmp/zzz/annex/.git/
/annex (master)> git-annex init
init ok
(recording state in git...)
/annex (master)> mkdir a
/annex (master)> cd a
/annex/a (master)> echo foo > bar
/annex/a (master)> git annex add bar
add bar ok
(recording state in git...)
/annex/a (master)> git commit -m "bar added"
git-annex: git: createProcess: runInteractiveProcess: chdir: does not exist (No such file or directory)
Differently, within a standard git repository, the equivalent git commit
does not fail:
> mkdir repo
> cd repo
/repo> git init
Initialized empty Git repository in /tmp/zzz/repo/.git/
/repo (master)> mkdir a
/repo (master)> cd a
/repo/a (master)> echo foo > bar
/repo/a (master)> git add bar
/repo/a (master)> git commit -m "bar added"
[master (root-commit) 203c996] bar added
1 file changed, 1 insertion(+)
create mode 100644 a/bar
In any case, a big thank for making git-annex
, it is a really great piece of software!
I see this issue as well, it started appearing after updating git-annex-6.20180626-1 to git-annex-6.20180807-1 (Fedora distribution). Downgrading helped resolving this issue for me for now.
This seems like the same or related to the problem discussed here: http://git-annex.branchable.com/bugs/v6_-_under_subdir__58___git_add___34__whines__34____44___git_commit___34__blows__34__/
It seems you are not using v6 mode, but perhaps you also have a broken old version of git?
It seems likely I've just fixed this in git-annex fdbdf64d87e2980e8399d1182ccb43bd0f013b16 but since I can't reproduce the problem from your transcript I can't say for sure.
Thanks Joey for looking into this one. I use git v2.7.4, currently shipped with Ubuntu 16.04, which may not be very recent. I don't use v6 because it is not the default in git-annex, at least till now. Should I? I'll try the recent commit you mention, as soon as it will be available in the Linux standalone version or in Neurodebian (currently 6.20180807-g48d11a5df and 6.20180807+git230-gaa291acfe-1~ndall+1) and I will report here shortly after.
My mistake. The last Linux standalone version, 6.20180807-g48d11a5df, works correctly and does not show the issue anymore:
Thank you for fixing the issue and thanks again for git-annex!
I get the same error/failure on MacOS. I have git-annex 6.20180807 I made a very simple change, deleting an old symlink, but the commit fails as mentioned in this thread.
I installed the latest via
brew install git-annex
. Is there another repository I can use to get a newer version? I'd rather not have top build from source as the pre-reqs are not tools I'd use for anything else.