$ git clone -n https://gitee.com/ali-inspur/tesseract.git /var/lib/mock/dist-an23-build-582924-96091/root/chroot_tmpdir/scmroot/tesseract Cloning into '/var/lib/mock/dist-an23-build-582924-96091/root/chroot_tmpdir/scmroot/tesseract'... $ git fetch origin 69a0880d027532d064582ceece4bd0f0ea7b9dd0:KOJI_FETCH_HEAD From https://gitee.com/ali-inspur/tesseract * [new ref] 69a0880d027532d064582ceece4bd0f0ea7b9dd0 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 69a0880 Fix %files to package the libtesseract SOVERSION symlink