git-repack: Properly abort in corrupt repository