$ git clone -n https://gitee.com/weiwhu/cri-rm.git /var/lib/mock/dist-an8.6-build-187764-60586/root/chroot_tmpdir/scmroot/cri-rm Cloning into '/var/lib/mock/dist-an8.6-build-187764-60586/root/chroot_tmpdir/scmroot/cri-rm'... $ git fetch origin a26f7fd52dcc61cf6f78313a389c536ea7e2f79b:KOJI_FETCH_HEAD From https://gitee.com/weiwhu/cri-rm * [new ref] a26f7fd52dcc61cf6f78313a389c536ea7e2f79b -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a26f7fd add patch and modify the spec file