Shortly before 3 p.m., PG&E was notified that a third-party contractor that had been digging in the 3200 block of Zanker Road had hit the 3-inch plastic gas line, spokeswoman Fiona Chan said.
PG&E dispatched a crew to the area, and Chan said that PG&E workers fixed the leak at 3:30 p.m.
A fire dispatcher said one nearby commercial building was evacuated.
Chan said that the rupture has not affected service to any customers.