$ git clone -n https://gitee.com/src-opencloudos-rpms/libtalloc.git /var/lib/mock/dist-oc8-build-38414-12442/root/chroot_tmpdir/scmroot/libtalloc Cloning into '/var/lib/mock/dist-oc8-build-38414-12442/root/chroot_tmpdir/scmroot/libtalloc'... $ git reset --hard origin/oc8 HEAD is now at db07b09 import libtalloc-2.3.4-1.tl3