$ git clone -n https://src.fedoraproject.org/rpms/ghc-text-short.git /var/lib/mock/f39-build-1962083-43270/root/chroot_tmpdir/scmroot/ghc-text-short Cloning into '/var/lib/mock/f39-build-1962083-43270/root/chroot_tmpdir/scmroot/ghc-text-short'... $ git fetch origin dc0e60ca5a076f62bccbeab3d77dfb1eaaea3908:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/ghc-text-short * [new ref] dc0e60ca5a076f62bccbeab3d77dfb1eaaea3908 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at dc0e60c revised .cabal file