update repo before applying files