$ git clone -n https://gitee.com/src-anolis-os/openldap.git /var/lib/mock/dist-an23.3-riscv-build-438020-73130/root/chroot_tmpdir/scmroot/openldap Cloning into '/var/lib/mock/dist-an23.3-riscv-build-438020-73130/root/chroot_tmpdir/scmroot/openldap'... $ git fetch origin a267f4a2713bdadd60a3e4020a72deeba2a8f103:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/openldap * [new ref] a267f4a2713bdadd60a3e4020a72deeba2a8f103 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a267f4a 2.6.5