$ git clone -n https://src.fedoraproject.org/rpms/netcdf-cxx4.git /var/lib/mock/f40-build-752654-116816/root/chroot_tmpdir/scmroot/netcdf-cxx4 Cloning into '/var/lib/mock/f40-build-752654-116816/root/chroot_tmpdir/scmroot/netcdf-cxx4'... $ git reset --hard 36ad2d2b30edd56ed357dea2be28c11b9a772fa9 HEAD is now at 36ad2d2 Use %patch -P#