$ git clone -n https://gitee.com/src-anolis-os/libssh2.git /var/lib/mock/dist-an7_9-updates-build-315678-67726/root/chroot_tmpdir/scmroot/libssh2 Cloning into '/var/lib/mock/dist-an7_9-updates-build-315678-67726/root/chroot_tmpdir/scmroot/libssh2'... $ git reset --hard origin/a7 HEAD is now at 9b1a27a Update to libssh2-1.8.0-4.el7_9.1.