What steps will reproduce the problem?
Try pasting file into annex directory while assistant is running.
What is the expected output? What do you see instead?
Expect file to successfully paste into directory, then be annexed. Instead, see a permissions error, and file disappears.
What version of git-annex are you using? On what operating system?
OSX - 10.6. zsh. git-annex version: 3.20120826
Please provide any additional information below.
Ok, I've put in the one second delay to adding by default on OSX. I consider this bug done, at least for now..
Reopening since I've heard from someone else that it can still happen. --Joey
I can only guess what this paste operation entails, but as far as I can tell, the error message and the deletion of the file both come from the paste program, not git-annex.
I know that git-annex assistant will not annex a file while it's still open to be written to. So my hypothesis is that the file is written to, closed, and then the paste program tries to do something else -- perhaps set the mode of the file -- and by that point git-annex has annexed it, and the program deletes the symlink. (So the content is probably buried in the git annex.)
Could you build from git master and in your annex, run:
git config annex.delayadd 10
That'll add a 10 second grace period for things to finish with files before they get added to the annex. Perhaps this will be enough to avoid the problem. Feel free to play with the number of seconds..