$ git clone -n https://src.fedoraproject.org/rpms/notes-up.git /var/lib/mock/f31-build-47843-26972/root/chroot_tmpdir/scmroot/notes-up Cloning into '/var/lib/mock/f31-build-47843-26972/root/chroot_tmpdir/scmroot/notes-up'... $ git reset --hard d162e9141ed7d50544a11e49a3fa1e54da901aed HEAD is now at d162e91 Use regular patch in %prep instead of *git*