$ git clone -n git+ssh://git@codeup.openanolis.cn/codeup/anolis-os/bacula.git /var/lib/mock/dist-an7-build-27232-15146/root/chroot_tmpdir/scmroot/bacula Cloning into '/var/lib/mock/dist-an7-build-27232-15146/root/chroot_tmpdir/scmroot/bacula'... $ git reset --hard origin/a7 HEAD is now at b5fa52f import bacula-5.2.13-23.1.el7.src.rpm