$ git clone -n https://gitee.com/src-anolis-test/virt-viewer.git /var/lib/mock/dist-an8.4-internal-build-73610-38663/root/chroot_tmpdir/scmroot/virt-viewer Cloning into '/var/lib/mock/dist-an8.4-internal-build-73610-38663/root/chroot_tmpdir/scmroot/virt-viewer'... $ git reset --hard origin/a8-temp-9.0-11.el8 HEAD is now at 31b57e9 import virt-viewer-9.0-11.el8.src.rpm $ /bin/sh -c if [ -f download ];then wget $(cat download);fi