$ git clone -n https://src.fedoraproject.org/rpms/maxima.git /var/lib/mock/f41-build-side-1-2969320-35818/root/chroot_tmpdir/scmroot/maxima Cloning into '/var/lib/mock/f41-build-side-1-2969320-35818/root/chroot_tmpdir/scmroot/maxima'... $ git fetch origin ba7e0577866ded8a4ad2b3b485bde451d40b2151:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/maxima * [new ref] ba7e0577866ded8a4ad2b3b485bde451d40b2151 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ba7e057 convert GPLv2 license to SPDX