$ git clone -n https://gitee.com/src-anolis-os/hplip.git /var/lib/mock/dist-an8.10-build-543187-85670/root/chroot_tmpdir/scmroot/hplip Cloning into '/var/lib/mock/dist-an8.10-build-543187-85670/root/chroot_tmpdir/scmroot/hplip'... $ git fetch origin b8e913668e115f5653c6093f39c76b60dc1a3423:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/hplip * [new ref] b8e913668e115f5653c6093f39c76b60dc1a3423 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at b8e9136 spec: add doc sub package