$ git clone -n https://gitee.com/dian-ws/diffutils.git /var/lib/mock/dist-an23-build-192452-60804/root/chroot_tmpdir/scmroot/diffutils Cloning into '/var/lib/mock/dist-an23-build-192452-60804/root/chroot_tmpdir/scmroot/diffutils'... $ git fetch origin a97d6b6d45d8201c85221f7456ec8cdb5bc5db5e:KOJI_FETCH_HEAD From https://gitee.com/dian-ws/diffutils * [new ref] a97d6b6d45d8201c85221f7456ec8cdb5bc5db5e -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a97d6b6 update spec file and add some patches