$ git clone -n https://gitee.com/weiwhu/cri-rm.git /var/lib/mock/dist-an8.6-build-184532-60350/root/chroot_tmpdir/scmroot/cri-rm Cloning into '/var/lib/mock/dist-an8.6-build-184532-60350/root/chroot_tmpdir/scmroot/cri-rm'... $ git reset --hard 997a59b813d1152658415ea1698466c39485675a HEAD is now at 997a59b dos2unix spec file and change source file to tar.gz