$ git clone -n https://gitee.com/src-anolis-os/jetty-test-policy.git /var/lib/mock/dist-an7-build-61161-33864/root/chroot_tmpdir/scmroot/jetty-test-policy Cloning into '/var/lib/mock/dist-an7-build-61161-33864/root/chroot_tmpdir/scmroot/jetty-test-policy'... $ git reset --hard origin/a7 HEAD is now at a210ccc import jetty-test-policy-1.2-10.el7.src.rpm