Update origin if necessary before checking revision