$ git clone -n https://gitee.com/doriscchao/tomcat.git /var/lib/mock/dist-ocs23-build-108740-6483/root/chroot_tmpdir/scmroot/tomcat Cloning into '/var/lib/mock/dist-ocs23-build-108740-6483/root/chroot_tmpdir/scmroot/tomcat'... $ git fetch origin HEAD:KOJI_FETCH_HEAD From https://gitee.com/doriscchao/tomcat * [new ref] HEAD -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at b41e3f8 update to apache-tomcat-9.0.82