$ git clone -n https://gitee.com/happy_orange/kmod.git /var/lib/mock/dist-an23-build-275391-64294/root/chroot_tmpdir/scmroot/kmod Cloning into '/var/lib/mock/dist-an23-build-275391-64294/root/chroot_tmpdir/scmroot/kmod'... $ git fetch origin 8f9afb8fe2a04beb2dc0d3825b77cead56aa327c:KOJI_FETCH_HEAD From https://gitee.com/happy_orange/kmod * [new ref] 8f9afb8fe2a04beb2dc0d3825b77cead56aa327c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 8f9afb8 enable weak_modules and enable dist_conf