Reset repository before updating spec file