cd to repo before update