$ git clone -n https://gitee.com/src-anolis-os/ftp.git /var/lib/mock/dist-an23.3-riscv-build-436136-73130/root/chroot_tmpdir/scmroot/ftp Cloning into '/var/lib/mock/dist-an23.3-riscv-build-436136-73130/root/chroot_tmpdir/scmroot/ftp'... $ git fetch origin 1dbd6c09a7fc562c735305352448dd5b88608338:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/ftp * [new ref] 1dbd6c09a7fc562c735305352448dd5b88608338 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 1dbd6c0 fix the source error