$ git clone -n https://gitee.com/src-opencloudos-rpms/tomcat.git /var/lib/mock/dist-oc8-build-259112-84922/root/chroot_tmpdir/scmroot/tomcat Cloning into '/var/lib/mock/dist-oc8-build-259112-84922/root/chroot_tmpdir/scmroot/tomcat'... $ git fetch origin a706f43c399fb0da1d56d103e1e56b31ccf93461:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/tomcat * [new ref] a706f43c399fb0da1d56d103e1e56b31ccf93461 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a706f43 import tomcat-9.0.123-1.tl3