$ git clone -n https://gitee.com/fundawang/openldap.git /var/lib/mock/dist-an23-build-284839-64769/root/chroot_tmpdir/scmroot/openldap Cloning into '/var/lib/mock/dist-an23-build-284839-64769/root/chroot_tmpdir/scmroot/openldap'... $ git fetch origin a267f4a2713bdadd60a3e4020a72deeba2a8f103:KOJI_FETCH_HEAD From https://gitee.com/fundawang/openldap * [new ref] a267f4a2713bdadd60a3e4020a72deeba2a8f103 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a267f4a 2.6.5