Soviet forces occupied eastern Poland until the summer of 1941 , when they were expelled by the invading German army in the course of Operation Barbarossa .
They were moved by the invading German army in the course of Operation Barbarossa .