$ git clone -n https://gitee.com/src-anolis-os/libdc1394.git /var/lib/mock/dist-an8.7-build-133091-47481/root/chroot_tmpdir/scmroot/libdc1394 Cloning into '/var/lib/mock/dist-an8.7-build-133091-47481/root/chroot_tmpdir/scmroot/libdc1394'... $ git reset --hard origin/a8 HEAD is now at 99b8c6f spec: edit doc sub package