$ git clone -n https://src.fedoraproject.org/rpms/bison.git /var/lib/mock/f33-build-283086-51821/root/chroot_tmpdir/scmroot/bison Cloning into '/var/lib/mock/f33-build-283086-51821/root/chroot_tmpdir/scmroot/bison'... $ git reset --hard debaa68e4816588d86263f606f28ece44cdf3921 HEAD is now at debaa68 Use macros where applicable and drop unecessary rm $RPM_BUILD_ROOT