dirIndex: actually update the sha1