Update origin if necessary before checking revision
Merge pull request #1 from raphink/git_update_origin

Update origin if necessary before checking revision