$ git clone -n https://gitee.com/ocs-upgrade/thrift.git /var/lib/mock/dist-ocs23-build-284972-27555/root/chroot_tmpdir/scmroot/thrift Cloning into '/var/lib/mock/dist-ocs23-build-284972-27555/root/chroot_tmpdir/scmroot/thrift'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-upgrade/thrift * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 07c4921 Upgrade to version 0.21.0