Swindon played a mixed team with Peter Brezovan, Jack Smith, Jerel Ifil, Hasney Aljofree, Jamie Vincent, Christian Roberts, Craig Easton, Steve Adams, Sofiene Zaaboub, Kaid Mohamed, Ibon Arrieta.
It was a fairly quiet first half with Bristol City's best chance coming when Swindon had to clear the ball off the line twice within seconds of each other.
Phil Smith played the second half, and the game looked to be heading towards a 0-0 draw with 75 minutes to go when city scored after a mix up in the town defence.
The game was watched by 3,197.