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