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