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