PITTSBURGH (AP) — Gorkys Hernandez homered off Ivan Nova to spark a five-run sixth inning, Nick Hundley added a three-run drive and the San Francisco Giants beat the Pittsburgh Pirates 5-0 Sunday to stop a season-high six game-losing streak.

Derek Holland (2-4) allowed four hits and five walks in 6 1/3 innings with seven strikeouts, repeatedly pitching out of trouble. Pittsburgh went 1 for 11 with runners in scoring position, including 0 for 8 against Holland, who allowed runners to reach second in four innings.

READ MORE: Evacuation Warnings Issued for San Mateo County Areas Burned by CZU Lightning Complex Fire

Reyes Moronto, Will Smith and Hunter Strickland completed a seven-hitter, the fourth shutout for the Giants this season. The Pirates were blanked for the third time this year.

Andrew McCutchen was 1 for 4 with a walk and went 4 for 14 (.286) with three doubles in his first series at Pittsburgh since the Pirates traded the five-time All-Star to the Giants during the offseason. He extended his hitting streak to 12 games, and he is 16 for 43 (.372) in that stretch.

Nova (2-3) gave up four runs and eight hits in 5 2/3 innings and is 0-2 in five starts since beating Miami on April 15.

Brandon Belt and Pablo Sandoval singled following Hernandez’s homer, and Hundley homered on the first pitch from Richard Rodriguez.

TRAINER’S ROOM

READ MORE: Police Investigation of Shattered Vehicle Windows Temporarily Shuts Highway 17 Saturday

Giants: LHP Madison Bumgarner (broken left hand) is expected to throw off a mound on Monday. If his rehab goes well, could be ready when he is eligible to be reinstated from the 60-day disabled list on May 25. … INF Alen Hanson was held out with a strained left hamstring.

Pirates: RHP Joe Musgrove (right shoulder strain) will have one more rehab start after throwing 5 2/3 innings on Saturday. … 2B Josh Harrison (broken left hand) has taken batting practice and is ready for a rehab stint. He is expected to return to big league action in about two weeks. … RHP Jameson Taillon (right finger laceration) is unsure whether he can make his scheduled start Wednesday. Taillon left his outing on Friday after three innings.

UP NEXT

Giants: RHP Chris Stratton (3-3, 4.60) is to start Monday at home against Cincinnati. The Giants have been outscored 35-9 in his losses.

Pirates: RHO Trevor Williams (4-2, 3.13 ERA) is slated to pitch Tuesday’s opener of a two-game series against the visiting Chicago White Sox. The Pirates are 8-2 in Interleague play.

MORE NEWS: Russian River Rubber Dam Deflated Due to Impending Storm

© Copyright 2018 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed