Rather numbing, especially when you consider how many times it happened this last century (and before of course):
This is taken from the 1963 movie The Victors, and was, so they say, inspired, if that is the right word, by the sad execution of Eddie Slovik, the last US serviceman shot for desertion.
There is more at the Hunter-Gatherer. from whence this came.