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