$ git clone -n https://gitee.com/anolis/tone-agent.git /var/lib/mock/dist-an8.8-build-288275-64887/root/chroot_tmpdir/scmroot/tone-agent Cloning into '/var/lib/mock/dist-an8.8-build-288275-64887/root/chroot_tmpdir/scmroot/tone-agent'... $ git fetch origin 42c2ce1bc62d371d30eb115c32158dfd37398bd9:KOJI_FETCH_HEAD From https://gitee.com/anolis/tone-agent * [new ref] 42c2ce1bc62d371d30eb115c32158dfd37398bd9 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 42c2ce1 spec