$ git clone -n https://gitee.com/zhoujiajia111/tomcat.git /var/lib/mock/dist-an23-build-445156-73188/root/chroot_tmpdir/scmroot/tomcat Cloning into '/var/lib/mock/dist-an23-build-445156-73188/root/chroot_tmpdir/scmroot/tomcat'... $ git fetch origin 09621f6bf04883765a49c7170176ec779f2a7d9c:KOJI_FETCH_HEAD From https://gitee.com/zhoujiajia111/tomcat * [new ref] 09621f6bf04883765a49c7170176ec779f2a7d9c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 09621f6 update tomcat.spec.