$ git clone -n https://src.fedoraproject.org/rpms/ghc-with-location.git /var/lib/mock/f38-build-side-42-init-devel-905251-28624/root/chroot_tmpdir/scmroot/ghc-with-location Cloning into '/var/lib/mock/f38-build-side-42-init-devel-905251-28624/root/chroot_tmpdir/scmroot/ghc-with-location'... $ git fetch origin 4d622e5f07b81b933347d2a2cb47d620aa8633ca:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/ghc-with-location * [new ref] 4d622e5f07b81b933347d2a2cb47d620aa8633ca -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 4d622e5 Convert to %autorelease and %autochangelog