git's index broke and I was unable to restore it. While this is not git-annex' problem, it should still be possible to get my data in an un-annexed state.

% git status
fatal: index file smaller than expected
% git annex unannex foo
fatal: index file smaller than expected
% git annex uninit
fatal: index file smaller than expected
uninit  
  pre-commit hook (/path/to/git-annex/.git/hooks/pre-commit) contents modified; not deleting. Edit it to remove call to git annex.
ok
%

Ttbomk, the softlinks and objects are enough to un-annex the files; side-stepping git's index if necessary.

They rely on git-ls-files to get a list of files that are checked into git, in order to tell what to unannex.
Comment by http://joey.kitenet.net/ Sun Apr 3 01:40:50 2011
Given that the softlinks contain all needed information (if the object exists, locally), an emergency way to get files "out" of git-annex would be nice. I am aware that one can script it, but a canonical way is always better, especially when things go south.
Comments on this page are closed.