[[!comment format=mdwn
 username="yarikoptic"
 avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4"
 subject="old issue bites back"
 date="2018-04-16T05:53:00Z"
 content="""
Sorry to bring the old issue up but we just ran into the same situation, and I wonder if any idea on how to mediate -- unlike other cases where it happens due to corrupt index, here I guess it goes about \"git-annex\" branch (or its some kind of local index cache?)

[[!format sh \"\"\"
nastase@head1:~/attention/raw_bids/stimuli$ git add README.md
nastase@head1:~/attention/raw_bids/stimuli$ git commit -m 'README for stimuli' README.md 
(recording state in git...)
error: invalid object 100644 fd601b9139518bd6737ad20e55198dd1854fa0f9 for '001/92f/MD5E-s1413--241f0946a6aecfe12a7c031cb2339f9d.pklz.log'
fatal: git-write-tree: error building trees
git-annex: failed to read sha from git write-tree
CallStack (from HasCallStack):
  error, called at ./Git/Sha.hs:18:15 in main:Git.Sha

nastase@head1:~/attention/raw_bids/stimuli$ git annex fsck
curl: (22) The requested URL returned error: 404 Not Found

  Remote openfmri not usable by git-annex; setting annex-ignore
fsck bird_eating_1.mp4 (checksum...) ok
...
fsck ungulate_swimming_2.mp4 (checksum...) ok
(recording state in git...)
error: invalid object 100644 fd601b9139518bd6737ad20e55198dd1854fa0f9 for '001/92f/MD5E-s1413--241f0946a6aecfe12a7c031cb2339f9d.pklz.log'
fatal: git-write-tree: error building trees
git-annex: failed to read sha from git write-tree
CallStack (from HasCallStack):
  error, called at ./Git/Sha.hs:18:15 in main:Git.Sha

nastase@head1:~/attention/raw_bids/stimuli$ git --version
git version 2.13.0.rc1.294.g07d810a77f

nastase@head1:~/attention/raw_bids/stimuli$ git annex version
git-annex version: 6.20180329+gitga5fe62bed-1~ndall+1

\"\"\"]]

NB The issue came earlier and I have just upgraded git from elderly 2.7.0 and git-annex-standalone from a few months back.

Any advice would be welcome

[[!meta author=yoh]]

"""]]
