Brooker scored in the first half and then in the 80th minute Riga levelled but just 1 minute later Jamie popped up to score the winner.
Line ups.
Bristol City (first half): Gindre; Orr, Heywood, Keogh, Woodman; Cotterill, Noble, Sako (Wilson 20), Murray; Brooker, Jevons.
Bristol City (second half): Gindre; Carey, McCombe, Fontaine, Lamb; Wring, Skuse, Russell, Brown; Showunmi, Williams.