$ git clone -n https://src.fedoraproject.org/rpms/dx.git /var/lib/mock/f40-build-792468-138438/root/chroot_tmpdir/scmroot/dx Cloning into '/var/lib/mock/f40-build-792468-138438/root/chroot_tmpdir/scmroot/dx'... $ git reset --hard 978da8777216c8a6efad4ab90a6ff77544028b13 HEAD is now at 978da87 Use %patch -P instead of %patch.