Wicked Spring (2002)
Wicked Spring is a 2002 American historical-based dramatic war film directed, produced, and written by Kevin Hershberger, as a his first narrative feature film, The fictional portrayal is based on several actual events from the Civil War, notably fictionalizing an event that took place in 1862 during the Battle of Crampton's Gap. The film focuses on a Harrison Bolding, a Confederate soldier in 1864 who, at night and with two other soldiers from his company, became lost while in conflict at the Battle of the Wilderness. The three meet and befriend a trio of Union soldiers that night, but don't realize it until the next morning when the six find themselves trapped between Union and Confederate defenses.
More at Wikipedia.