Henrik Ahlgren wrote: > On Mon, Apr 08, 2013 at 12:53:52PM -0400, Joey Hess wrote: > > mv .git/annex/bad . > > git annex add bad > > rm -rf bad > > Can you please explain how that should work? When I run that, it looks > like git-annex just thinks I want to add new files, and git status > reports this:
Hmm, yes, it won't work in this case, because due to the version skew, the same key is not being generated for the files as was used before. In more usual circumstances, re-adding the file gets back the same key it had before (assuming the content of the file is the same!) and to it just slots back into place. > I still have the original repository where I can easily copy the files > from, but maybe it would be useful to have the working procedure > documented (at least in this bug report) for those who have this > problem with their only copy. Of course it's quite trivial to write > a script that finds the dangling symlinks and moves the bad files > to the corresponding place; with a small number of files it is even > feasible to do it manually. If you're going to do with, you can use `git annex reinject` -- see shy jo
signature.asc
Description: Digital signature