Yovani Gallardo allowed four hits over eight innings to win his fifth straight start, and the Milwaukee Brewers beat the San Francisco Giants 6-0 on Sunday to wrap up an 8-1 homestand.