$ git clone -n https://src.fedoraproject.org/rpms/alex.git /var/lib/mock/f38-build-710518-93504/root/chroot_tmpdir/scmroot/alex Cloning into '/var/lib/mock/f38-build-710518-93504/root/chroot_tmpdir/scmroot/alex'... $ git reset --hard 7331c52691c9b05d4c151dedc009c5e35ddc100e HEAD is now at 7331c52 Convert to rpmautospec