query_revision now returns correct git commit hash

This plugin is so good for me, but `PROJECT_ROOT/REVISION` after deployed seems to be wrong.
It's because `query_revision` does not return correct git commit hash for requested Pull Request, so I have resolved this issue.