$ git clone -n https://gitee.com/ocs-upgrade/openjpeg2.git /var/lib/mock/dist-ocs23-build-228095-17320/root/chroot_tmpdir/scmroot/openjpeg2 Cloning into '/var/lib/mock/dist-ocs23-build-228095-17320/root/chroot_tmpdir/scmroot/openjpeg2'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-upgrade/openjpeg2 * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 6b9a827 fixed patch to adapt 2.5.2