$ git clone -n https://gitee.com/src-anolis-os/ant-antunit.git /var/lib/mock/dist-an7-build-60925-33836/root/chroot_tmpdir/scmroot/ant-antunit Cloning into '/var/lib/mock/dist-an7-build-60925-33836/root/chroot_tmpdir/scmroot/ant-antunit'... $ git reset --hard origin/a7 HEAD is now at 52aa3b9 import ant-antunit-1.2-10.el7.src.rpm