$ git clone -n https://gitee.com/src-anolis-os/flex.git /var/lib/mock/dist-an23.3-riscv-build-436122-73130/root/chroot_tmpdir/scmroot/flex Cloning into '/var/lib/mock/dist-an23.3-riscv-build-436122-73130/root/chroot_tmpdir/scmroot/flex'... $ git fetch origin b38f76ec4f89062a8b6fa4bf9f335aeeeb1ac3e2:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/flex * [new ref] b38f76ec4f89062a8b6fa4bf9f335aeeeb1ac3e2 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at b38f76e optimise spec and patch file