$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/libfabric.git /var/lib/mock/dist-an7-updates-build-43020-21667/root/chroot_tmpdir/scmroot/libfabric Cloning into '/var/lib/mock/dist-an7-updates-build-43020-21667/root/chroot_tmpdir/scmroot/libfabric'... $ git reset --hard origin/a7 HEAD is now at 218cdc1 update to libfabric-1.7.2-1.el7.src.rpm