$ git clone -n https://src.fedoraproject.org/rpms/numad.git /var/lib/mock/f40-build-2228847-53101/root/chroot_tmpdir/scmroot/numad Cloning into '/var/lib/mock/f40-build-2228847-53101/root/chroot_tmpdir/scmroot/numad'... $ git fetch origin a08dcd570c9e0c8e4cc2c1d6f60547962bbde9ef:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/numad * [new ref] a08dcd570c9e0c8e4cc2c1d6f60547962bbde9ef -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a08dcd5 add a patch with the -m option fix