$ git clone -n https://gitee.com/src-anolis-os/transfig.git /var/lib/mock/dist-an8.6-build-132597-47089/root/chroot_tmpdir/scmroot/transfig Cloning into '/var/lib/mock/dist-an8.6-build-132597-47089/root/chroot_tmpdir/scmroot/transfig'... $ git reset --hard origin/a8 HEAD is now at ab1fe4e import transfig-3.2.6a-4.el8.src.rpm