$ git clone -n https://src.fedoraproject.org/rpms/gdal.git /var/lib/mock/eln-build-side-110308-58884134-6569037/root/chroot_tmpdir/scmroot/gdal Cloning into '/var/lib/mock/eln-build-side-110308-58884134-6569037/root/chroot_tmpdir/scmroot/gdal'... $ git fetch origin 529be833d45b806c3bb9c381b09e94f16c5c7cd5:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/gdal * [new ref] 529be833d45b806c3bb9c381b09e94f16c5c7cd5 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 529be83 Cleanup conditionals and fix %%files