$ git clone -n https://gitee.com/xzyang-anolis/libgdither.git /var/lib/mock/dist-an23-build-339607-69782/root/chroot_tmpdir/scmroot/libgdither Cloning into '/var/lib/mock/dist-an23-build-339607-69782/root/chroot_tmpdir/scmroot/libgdither'... $ git fetch origin 3663423ef723ded03cc2290610eb797b437c09e3:KOJI_FETCH_HEAD From https://gitee.com/xzyang-anolis/libgdither * [new ref] 3663423ef723ded03cc2290610eb797b437c09e3 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3663423 pkg init