The incident happened at about 01:40 on Monday in Saracen Street.
A car collided with the building, causing damage to a gas main. Thirteen people had to leave their homes
Police Scotland said the damage had now been repaired and the gas leak sealed off. Two men are in custody in connection with a stolen vehicle.
A spokesman added: "A vehicle lost control on Saracen Street and collided with a block of flats, causing damage to some of the gas fixtures.
"It was necessary to have 13 people evacuated."
A block of flats in Glasgow was evacuated after a suspected stolen car crashed into a building causing a gas leak.