$ git clone -n https://gitee.com/src-anolis-os/gdb.git /mnt/mock/kojid//dist-an23.3-riscv-build-436177-73130/root/chroot_tmpdir/scmroot/gdb Cloning into '/mnt/mock/kojid//dist-an23.3-riscv-build-436177-73130/root/chroot_tmpdir/scmroot/gdb'... $ git fetch origin d8577e69bc9532250d814f4be8356df5a3b71262:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/gdb * [new ref] d8577e69bc9532250d814f4be8356df5a3b71262 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d8577e6 adapt for riscv64