$ git clone -n https://gitee.com/fe_zhang/redis.git /var/lib/mock/dist-an23-build-251240-63412/root/chroot_tmpdir/scmroot/redis Cloning into '/var/lib/mock/dist-an23-build-251240-63412/root/chroot_tmpdir/scmroot/redis'... $ git reset --hard e1d563f281d39411d1bb25c211e8e59362441848 HEAD is now at e1d563f Optimize the spec file