That's not just an idea. Order No. 270 ordered to shoot any deserters (or anybody who's not 'organizing resistance') on the spot and promised imprisonment for families of those who surrendered to the Germans.
https://en.m.wikipedia.org/wiki/Order_No._270