$ git clone -n https://gitee.com/src-opencloudos-rpms/kpatch /var/lib/mock/dist-oc8-build-31841-9257/root/chroot_tmpdir/scmroot/kpatch Cloning into '/var/lib/mock/dist-oc8-build-31841-9257/root/chroot_tmpdir/scmroot/kpatch'... $ git reset --hard origin/oc8 HEAD is now at 16e7ef9 import kpatch-0.9.4-3.oc8