$ git clone -n https://gitee.com/src-anolis-os/gcc.git /mnt/mock/kojid//dist-an23.3-riscv-build-440363-73130/root/chroot_tmpdir/scmroot/gcc Cloning into '/mnt/mock/kojid//dist-an23.3-riscv-build-440363-73130/root/chroot_tmpdir/scmroot/gcc'... $ git fetch origin 534b9a26549b6ce10e80034f0ade602bffd38e02:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/gcc * [new ref] 534b9a26549b6ce10e80034f0ade602bffd38e02 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD Updating files: 94% (360/381) Updating files: 95% (362/381) Updating files: 96% (366/381) Updating files: 97% (370/381) Updating files: 98% (374/381) Updating files: 99% (378/381) Updating files: 100% (381/381) Updating files: 100% (381/381), done. HEAD is now at 534b9a2 adapt for riscv64