$ git clone -n https://gitee.com/src-anolis-os/logrotate.git /mnt/mock/kojid//dist-an23.3-riscv-build-437655-73130/root/chroot_tmpdir/scmroot/logrotate Cloning into '/mnt/mock/kojid//dist-an23.3-riscv-build-437655-73130/root/chroot_tmpdir/scmroot/logrotate'... $ git fetch origin 9e891f0c0f7574730aa1388028d0b46a5c61e3c0:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/logrotate * [new ref] 9e891f0c0f7574730aa1388028d0b46a5c61e3c0 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 9e891f0 Use config file rather than hard-code prog names for zstd