$ git clone -n https://gitee.com/src-anolis-os/kpatch.git /var/lib/mock/dist-an23.3-build-422013-72908/root/chroot_tmpdir/scmroot/kpatch Cloning into '/var/lib/mock/dist-an23.3-build-422013-72908/root/chroot_tmpdir/scmroot/kpatch'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/kpatch * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 4d3a9b3 update to 0.9.7 from 0.9.4