added tons of debug output trying to fix a bug which proved to be caused by corruption of my local repo (likely disk-errors…).