SAN FRANCISCO -- Jean Machi and the San Francisco Giants ended their six-game losing streak in the most wacky way. J.R. Bremer Jersey Signed . They dont care how it happened, any break is welcome these days. A timely, heads-up glance by Machi helped San Francisco take advantage of a huge baserunning blunder by Pittsburgh, and the Giants tagged out of two runners who wandered away on the same play to beat the Pirates 7-5 Wednesday. "Just like we drew it up, right?" second baseman Joe Panik quipped. "We got lucky with that one. Everything happened so quick. Almost like Little League, a rundown, playing a game of Pickle." San Francisco stopped a skid that matched its longest of the season, and avoided the clubs first winless homestand of at least seven games in the 15-year history of AT&T Park. The Pirates, who had won three in a row, led 5-4 in the sixth when Chris Stewart drew a one-out walk with runners on second and third. Machi (6-0) got the ball back from the catcher and noticed Travis Snider had left second base, apparently thinking it was a bases-loaded walk. "Absolutely! It was 100 per cent mental error on my part," Snider said. "Offensively, we could have made something happen. Honestly, I was thinking about getting to third base and if he walked Id get to third. Thats obviously not what you want to happen when you have first open. I take ownership for that mistake." Machi threw to shortstop Brandon Crawford to trap Snider in a rundown. Crawford tagged Snider, then saw Gaby Sanchez stray off third and break for home. Crawford threw to Machi, who tossed back to third baseman Pablo Sandoval to get Sanchez. "You dont see that very often. We got a break there," manager Bruce Bochy said. "I havent seen that. He mustve thought the bases were loaded, going to third." Gregor Blanco hit a tying single in the seventh, and a passed ball by Stewart later in the inning put the Giants ahead. Justin Wilson (3-2) took the loss. Santiago Casilla, San Franciscos fifth reliever after Tim Lincecums short start, earned his eighth save in 11 chances. Jordy Mercer hit a two-run homer in the fourth and Josh Harrison also connected for the Pirates. But the blunder on the bases left manager Clint Hurdle baffled. "You know, I have a buddy and we always talk about how if you watch enough games youll continually see something you have never seen before," he said. "Unfortunately, thats the first time Ive seen us walk into a double play." Bochy met with slumping Crawford before the game about tweaking his hitting mechanics, then moved him up to the No. 2 hole. Crawfords single started a three-run first on a day the Giants runs were more than the six they had total in the previous six games. HARRISONS POP: Harrisons ninth home run was his fourth longball in as many games. The Pirates have nine homers in their last five games. "We call it game-time pop," Hurdle said. SUSACS FIRST HIT: Andrew Susac recorded his first career hit and RBI in the third for San Francisco. Starting at catcher as Buster Posey played first base, Susac was 0 for 5 in four games before his single. He was promoted Saturday from Triple-A Fresno with Hector Sanchez out because of a concussion. "Its awesome. I cant explain how it feels," he said. And the ball from his hit? "I think my dad earned it." QUOTABLE: On his 57th birthday, Hurdle offered: "All I want for my birthday is another birthday. Im good now and could go out tomorrow and have no regrets." TRAINERS ROOM: Pirates: Outfielder Starling Marte needs more time to recover on the concussion list and wasnt activated Wednesday when eligible. He went through his first full workout Tuesday, then had a recovery day Wednesday. He is likely to need a rehab assignment. Giants: Bochy is optimistic of getting first baseman Brandon Belt back from a concussion as soon as this weekend against the Mets in New York, while centre fielder Angel Pagan could play in a rehab game in the next couple of days in Arizona as he returns from an inflamed back. Right-hander Matt Cain was being re-evaluated Wednesday as he tries to recover from an elbow injury in his throwing arm. ON DECK: Pirates: Jeff Locke (2-2) starts Thursday night at Arizona. Giants: Ryan Vogelsong (5-8) pitches Friday night vs. the Mets at Citi Field to start an 11-day, 10-game road trip. Bob Cluggish Jersey Signed . Barnard, 28, was 1-0 with a 0.53 ERA in three appearances, including two starts, with San Angel o this season. He struck out 19 batters and walked just one in 17 innings pitched. He has previous American Association experience with the Lincoln Saltdogs, El Paso Diablos and Amarillo Sox. Cedric Ball Jersey Signed . -- EJ Manuel followed the worst game of his career with the best. NEW YORK -- Miguel Cabrera hit a mammoth homer, Rick Porcello enjoyed a happy homecoming and the Detroit Tigers polished off a three-game sweep of the New York Mets with an 11-3 victory Sunday. Andy Dirks put Detroit ahead with a two-run shot, and the AL Central leaders improved to 12-5 in interleague play. They have won 34 of 49 overall, the best mark in the American League since July 2. Porcello (10-7) pitched seven innings of four-hit ball before the Tigers broke it open with a seven-run ninth. Dirks drew a bases-loaded walk during the outburst, which included RBI singles by Victor Martinez and Ramon Santiago. Travis dArnaud hit his first major league homer for the Mets, who have scored five runs during a four-game slide. They were outhit 33-7 in the final two games of the series. Dillon Gee (9-9) lost for only the third time in 16 starts. He entered with a 2.27 ERA since May 30, the fourth-best mark in the majors during that span. The 24-year-old Porcello, who grew up nearby in New Jersey, left 17 tickets for family and friends. He didnt disappoint them, either, bouncing back from a loss to Minnesota and moving to 6-1 in his past nine outings. The right-hander was hit hard in his only other start against the Mets on June 28, 2011, in Detroit. He pitched at Yankee Stadium a little more than two weeks ago, taking a no-decision in Detroits 4-3 defeat. The Tigers were trailing by one when Victor Martinez singled off Gee to start the sixth. Dirks, who had three of Detroits 13 hits Saturday off All-Star ace Matt Harvey, drove an 0-1 delivery to right-centre for his eighth home run. Gee lasted six innings for the 11th straight start, the longest streak of his career, and 15th time in 16 outings. But he matched a season high by giving up 10 hits -- five in the sixth. Austin Jackson opened the game with a soft single and Cabrera launched a 2-0 pitch toward left field, where it cleared a railing in the second deck and sailed through a triangular opening beneath the restaurant windows. The drive induced a collective gasp from the crowd of 32,084 on Tom Seaver bobblehead day and gave Cabrera 42 home runs to go with a major league-high 128 RBIs. Jack Tingle Jersey Signed. Trying to become the first player to win consecutive Triple Crowns, he began the day five homers behind Baltimore slugger Chris Davis. It was Cabreras second long ball of the series and 10th in 19 games. He finished 3 for 4 with a walk. A broken-bat single by Daniel Murphy with two outs in the third cut it to 2-1, and dArnaud put the Mets ahead one inning later with a two-run shot that barely cleared the shortened fence in left-centre. A top prospect, dArnaud was acquired from Toronto in a trade for Cy Young Award winner R.A. Dickey last off-season. Before connecting, he was 1 for 16 in the big leagues since getting called up Aug. 16. Considered the Mets catcher of the future, dArnaud popped out of the dugout to take a curtain call for fans hoping to see much more of the same in years to come. Detroit reliever Bruce Rondon worked around a leadoff walk in the eighth to protect a 4-3 lead. NOTES: Tigers SS Jose Iglesias sat out again with a sore left elbow after getting hit by a pitch Friday. He was replaced by Santiago, who had three hits and made two nice plays to rob Ike Davis. ... Martinez, normally a DH, started at catcher for the second time in the series. Martinez, who missed last season following knee surgery, was behind the plate Friday for the first time in more than two years. ... Detroit C Alex Avila (concussion symptoms) went 0 for 3 with a walk Saturday as the DH in his second rehab game for Triple-A Toledo. Avila did not report any headaches, the Tigers said. ... Detroit begins a seven-game homestand Monday night against Oakland. Manager Jim Leyland said hell probably rest 2B Omar Infante one day during the four-game series against the Athletics. ... Mets manager Terry Collins rested 3B Wilmer Flores (ankle) partly because he plans to play the rookie at 2B one day this week. Justin Turner started at third and grounded into two double plays. ... Rookie RHP Zack Wheeler (6-2, 3.49 ERA) faces All-Star lefty Cliff Lee (10-6, 3.16) on Monday night in the opener of a four-game series against Philadelphia. ' ' '