$ git clone -n https://gitee.com/ocs-bot/thrift.git /var/lib/mock/dist-ocs23-build-115670-7927/root/chroot_tmpdir/scmroot/thrift Cloning into '/var/lib/mock/dist-ocs23-build-115670-7927/root/chroot_tmpdir/scmroot/thrift'... $ git fetch origin HEAD:KOJI_FETCH_HEAD From https://gitee.com/ocs-bot/thrift * [new ref] HEAD -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at feca33e Upgrade to version 0.19.0