$ git clone -n https://gitee.com/src-opencloudos-rpms/libtalloc /var/lib/mock/dist-oc8-build-57646-15635/root/chroot_tmpdir/scmroot/libtalloc Cloning into '/var/lib/mock/dist-oc8-build-57646-15635/root/chroot_tmpdir/scmroot/libtalloc'... $ git fetch origin oc8:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/libtalloc * [new branch] oc8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at f6d8b7d import libtalloc-2.4.0-3.el8