Remove hack: get ref from gerrit
Merge pull request #120 from chenxiaolong/get-current-revision

Remove hack: get ref from gerrit