$ git clone -n https://gitee.com/ocs-upgrade/gdisk.git /var/lib/mock/dist-ocs23-build-245158-23369/root/chroot_tmpdir/scmroot/gdisk Cloning into '/var/lib/mock/dist-ocs23-build-245158-23369/root/chroot_tmpdir/scmroot/gdisk'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-upgrade/gdisk * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 2b62e78 Remove the patches that has already been merged into the upstream