HOUSTON (AP) — Rookie Hunter Pence homered for the second straight game and the Houston Astros beat the San Francisco Giants 2-1 Wednesday night for their fourth straight win.

The win gives Houston its first home series win over the Giants since 1999 and breaks a streak of five consecutive series losses to San Francisco.

Pence put Houston up 2-1 with a solo homer that bounced off the train tracks above the left-field wall in the fourth inning. He hit a tying two-run drive in the eighth inning of Tuesday’s 6-5, 10-inning win.

Pence, who was called up on April 27 to boost the offense, is 7-for-7 in this series. He had singles in the second, sixth and eighth innings Wednesday and has four home runs and 15 RBIs this season.

Giants slugger Barry Bonds was 1-for-3 with a single and a walk. He hasn’t hit a homer since May 8 and remains 10 away from tying Hank Aaron’s career record of 755. His drought at Minute Maid Park stretches to opening day of 2004.

Fellow rookie Chris Sampson (4-3), who was back with Houston after missing Tuesday’s game for the birth of his first child, allowed one runs and seven hits in six innings. He walked one and struck out three.

Dan Wheeler pitched a perfect ninth for his ninth save.