SAN FRANCISCO (KCBS) – San Francisco police closed a busy intersection in Lower Pacific Heights and evacuated some of the surrounding buildings for about an hour Thursday because of a gas leak at a construction site.

An excavator struck a one-inch natural gas line at the site, near the corner of Pine and Divisadero streets, shortly after 10 a.m., fire officials said.

READ MORE: COVID: Bay Area Vaccine Hunters Help Those Eligible Struggling To Find Appointments

San Francisco police shut down Divisadero Street for two blocks, evacuating every building between California and Bush streets while Pacific Gas and Electric crews worked to cap the leak.

READ MORE: Twitter Sues Texas AG Over Alleged Retaliation For Banning Trump's Account After Capitol Riot

Crews were able to pinch the line around 10:45 a.m., and the street was reopened to pedestrian traffic.

That stretch of Divisadero Street remained closed to vehicle traffic, however, because of the repair work needed to cap the gas line.

MORE NEWS: COVID Reopening: San Francisco Unified Reveals More Details Of April Reopening

No one was hurt.