$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/haproxy.git /var/lib/mock/dist-an7-build-31306-15709/root/chroot_tmpdir/scmroot/haproxy Cloning into '/var/lib/mock/dist-an7-build-31306-15709/root/chroot_tmpdir/scmroot/haproxy'... $ git reset --hard origin/a7 HEAD is now at 29da08d import haproxy-1.5.18-9.el7.src.rpm