$ git clone -n https://src.fedoraproject.org/rpms/genromfs.git /var/lib/mock/f40-build-750609-115133/root/chroot_tmpdir/scmroot/genromfs Cloning into '/var/lib/mock/f40-build-750609-115133/root/chroot_tmpdir/scmroot/genromfs'... $ git reset --hard 5f6a2d13fe8931fa8f9c1319e6667cf8604926d1 HEAD is now at 5f6a2d1 replace the %setup macro with the %autosetup macro