Paddy Madden’s 24th goal of the season put Stockport within touching distance of the English Football League as they climbed back to the Vanarama National League summit with just a game to play.
A 1-0 home win over stubborn Torquay means a point at home to Halifax on Saturday will clinch the title and end their 11-year exile.
Danny Wright glanced an early header just wide for the visitors, but Gulls keeper Shaun MacDonald made a vital intervention to send Myles Hippolyte’s 12th-minute shot over the bar.
Antoni Sarcevic and Hippolyte both went close for the home side before the break, but Torquay stood firm to head for the dressing rooms still level.
The injured MacDonald was replaced by Mark Halstead at the break, and the newcomer was quickly into the action, saving two Will Collar headers as County threatened.
However, there was nothing he could do to deny Madden when he struck from close range to win it with 26 minutes remaining.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.