$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/gupnp-dlna.git /var/lib/mock/dist-an7-build-27955-15214/root/chroot_tmpdir/scmroot/gupnp-dlna Cloning into '/var/lib/mock/dist-an7-build-27955-15214/root/chroot_tmpdir/scmroot/gupnp-dlna'... $ git reset --hard origin/a7 HEAD is now at 57b0954 import gupnp-dlna-0.10.5-1.el7.src.rpm