Only commit changes if building