$ git clone -n https://gitee.com/src-anolis-os/perl-Template-Toolkit.git /var/lib/mock/dist-an7-build-60898-33772/root/chroot_tmpdir/scmroot/perl-Template-Toolkit Cloning into '/var/lib/mock/dist-an7-build-60898-33772/root/chroot_tmpdir/scmroot/perl-Template-Toolkit'... $ git reset --hard origin/a7 HEAD is now at 1a883f2 import perl-Template-Toolkit-2.24-5.el7.src.rpm