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