$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/libosinfo.git /var/lib/mock/dist-an7-build-31923-15836/root/chroot_tmpdir/scmroot/libosinfo Cloning into '/var/lib/mock/dist-an7-build-31923-15836/root/chroot_tmpdir/scmroot/libosinfo'... $ git reset --hard origin/a7 HEAD is now at 88fbf1d import libosinfo-1.1.0-3.el7.src.rpm