$ git clone -n https://gitee.com/Weisson/gcc.git /var/lib/mock/dist-an8.10-build-469985-74003/root/chroot_tmpdir/scmroot/gcc Cloning into '/var/lib/mock/dist-an8.10-build-469985-74003/root/chroot_tmpdir/scmroot/gcc'... $ git fetch origin d35bd8ff1d96518a68f29fa823ea9f6c8e9a8467:KOJI_FETCH_HEAD From https://gitee.com/Weisson/gcc * [new ref] d35bd8ff1d96518a68f29fa823ea9f6c8e9a8467 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d35bd8f Exclude offload amdgcn for riscv64 explicitly.