“Court Martial” is a romanticized version of a real-life pardon issued by President Abraham Lincoln during the American Civil War. A soldier is caught sleeping while on guard duty, and is sentenced to be shot. President Lincoln steps in and pardons him once he learns of extenuating circumstances. William Scott was the real-life soldier pardoned, and altogether Lincoln issued 343 pardons during his time in office. Scott was later killed in battle, shot by the enemy.
(A century later the punishment of death was long off the table for sleeping on sentry duty; while a soldier in the U.S. Army I fell asleep more than once while on guard. Luckily, I was never caught. I just hope after admitting it that the statute of limitation applies.)
The story is from Battle Action #17, an early Comics Code approved Atlas comic from 1955.