$ git clone -n https://gitee.com/src-anolis-os/byacc.git /mnt/mock/kojid//dist-an23.3-riscv-build-435923-73130/root/chroot_tmpdir/scmroot/byacc Cloning into '/mnt/mock/kojid//dist-an23.3-riscv-build-435923-73130/root/chroot_tmpdir/scmroot/byacc'... $ git fetch origin b9824621f52226737c6d5ed51ecd4e4d2afafc70:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/byacc * [new ref] b9824621f52226737c6d5ed51ecd4e4d2afafc70 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at b982462 update to byacc-2.0.20230521