$ git clone -n https://gitee.com/src-anolis-os/opencv.git /var/lib/mock/dist-an7-build-61409-33930/root/chroot_tmpdir/scmroot/opencv Cloning into '/var/lib/mock/dist-an7-build-61409-33930/root/chroot_tmpdir/scmroot/opencv'... $ git reset --hard origin/a7 HEAD is now at 256aaa0 import opencv-2.4.5-3.el7.src.rpm