$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/mercurial.git /var/lib/mock/dist-an7-updates-build-43133-21673/root/chroot_tmpdir/scmroot/mercurial Cloning into '/var/lib/mock/dist-an7-updates-build-43133-21673/root/chroot_tmpdir/scmroot/mercurial'... $ git reset --hard origin/a7 HEAD is now at 4084cd0 update to mercurial-2.6.2-11.el7.src.rpm