summaryrefslogtreecommitdiff
path: root/doc/bugs/unannex_and_uninit_do_not_work_when_git_index_is_broken.mdwn
blob: 509e12aebb4b464a423aa463ded9d602789cc314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.