Sparked by Josh Harrison's go-ahead RBI, the 2, victory over the Milwaukee Brewers in the back end of a doubleheader.

The Brewers won the opener, 8-1, behind a strong performance from Chris Narveson, who returned from the disabled list to toss 5 1/3 scoreless frames and knock in a pair of runs.

In the nightcap, Ryan Doumit went 2-for-4 with a home run and two RBI for the Pirates, who had lost 13 straight games to the Brewers.

Brad Lincoln allowed two runs over six frames before handing the ball to Daniel McCutchen (4-3), who worked a scoreless seventh to earn the win.

Zack Greinke (12-5) was charged with seven runs on seven hits over 6 1/3 innings to suffer the loss. He had won his previous five starts.

Corey Hart had a solo home run for the Brewers, who have won 23 of 27 despite the setback.