$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/python-psycopg2.git /var/lib/mock/dist-an7-build-34550-16244/root/chroot_tmpdir/scmroot/python-psycopg2 Cloning into '/var/lib/mock/dist-an7-build-34550-16244/root/chroot_tmpdir/scmroot/python-psycopg2'... $ git reset --hard origin/a7 HEAD is now at 1c729d7 import python-psycopg2-2.5.1-4.el7.src.rpm