$ git clone -n https://gitee.com/yejr/oe-greatsql.git /var/lib/mock/dist-an8.9-build-424795-72901/root/chroot_tmpdir/scmroot/oe-greatsql Cloning into '/var/lib/mock/dist-an8.9-build-424795-72901/root/chroot_tmpdir/scmroot/oe-greatsql'... $ git fetch origin 007ba8e0a6b9e26efb1a5e1b56653cec3141c5dd:KOJI_FETCH_HEAD From https://gitee.com/yejr/oe-greatsql * [new ref] 007ba8e0a6b9e26efb1a5e1b56653cec3141c5dd -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 007ba8e no need some requires if rhel<8