$ git clone -n https://gitee.com/xzyang-anolis/ancert.git /var/lib/mock/dist-an8.9-build-376814-71722/root/chroot_tmpdir/scmroot/ancert Cloning into '/var/lib/mock/dist-an8.9-build-376814-71722/root/chroot_tmpdir/scmroot/ancert'... $ git fetch origin 592c6f5ef37ce73729569802512c1c849be20d6c:KOJI_FETCH_HEAD From https://gitee.com/xzyang-anolis/ancert * [new ref] 592c6f5ef37ce73729569802512c1c849be20d6c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 592c6f5 fix os-release path