$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-infra/python-memcached.git /var/lib/mock/dist-an8-infra-build-50913-23207/root/chroot_tmpdir/scmroot/python-memcached Cloning into '/var/lib/mock/dist-an8-infra-build-50913-23207/root/chroot_tmpdir/scmroot/python-memcached'... $ git reset --hard origin/a8 HEAD is now at e400261 remove python2 related code and Remove the %check part in specfile.