$ git clone -n https://gitee.com/ocs-upgrade/mercurial.git /var/lib/mock/dist-ocs23-build-212340-15360/root/chroot_tmpdir/scmroot/mercurial Cloning into '/var/lib/mock/dist-ocs23-build-212340-15360/root/chroot_tmpdir/scmroot/mercurial'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-upgrade/mercurial * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 0d21dfb Upgrade to version 6.8