$ git clone -n https://gitee.com/src-anolis-os/net-snmp.git /var/lib/mock/dist-an23-build-107857-45692/root/chroot_tmpdir/scmroot/net-snmp Cloning into '/var/lib/mock/dist-an23-build-107857-45692/root/chroot_tmpdir/scmroot/net-snmp'... $ git reset --hard af596e6e16752f40064869b5344cd19028cdd710 HEAD is now at af596e6 init from upstream