$ git clone -n https://gitee.com/src-opencloudos-rpms/thrift.git /var/lib/mock/dist-oc9-build-51700-14595/root/chroot_tmpdir/scmroot/thrift Cloning into '/var/lib/mock/dist-oc9-build-51700-14595/root/chroot_tmpdir/scmroot/thrift'... $ git fetch origin oc9:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/thrift * [new branch] oc9 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 456af40 import thrift-0.14.0-4.tl4