$ git clone -n https://gitee.com/src-opencloudos-rpms/kpatch.git /var/lib/mock/dist-oc8-build-38462-12472/root/chroot_tmpdir/scmroot/kpatch Cloning into '/var/lib/mock/dist-oc8-build-38462-12472/root/chroot_tmpdir/scmroot/kpatch'... $ git reset --hard origin/oc8 HEAD is now at 229a5e8 import kpatch-0.9.7-2.tl3