$ git clone -n https://gitee.com/src-anolis-os/ocaml-xml-light.git /var/lib/mock/dist-an7-build-62496-34487/root/chroot_tmpdir/scmroot/ocaml-xml-light Cloning into '/var/lib/mock/dist-an7-build-62496-34487/root/chroot_tmpdir/scmroot/ocaml-xml-light'... $ git reset --hard origin/a7 HEAD is now at dabc045 import ocaml-xml-light-2.3-0.8.svn234.el7.src.rpm