Update the tracking references only if they were succesfully updated on remote