$ git clone -n http://git.inferitos.ru/rpms/gitea /var/lib/mock/inferit-9_5-extras-build-92762-174324/root/chroot_tmpdir/scmroot/gitea Cloning into '/var/lib/mock/inferit-9_5-extras-build-92762-174324/root/chroot_tmpdir/scmroot/gitea'... $ git fetch origin changed/i9ce/gitea-1.22.6-1.el9:KOJI_FETCH_HEAD error: cannot update ref 'refs/heads/KOJI_FETCH_HEAD': trying to write non-commit object 1a95a3fbdd90e61060e995d25da00723bb36de0c to branch 'refs/heads/KOJI_FETCH_HEAD' From http://git.inferitos.ru/rpms/gitea ! [new tag] changed/i9ce/gitea-1.22.6-1.el9 -> KOJI_FETCH_HEAD (unable to update local ref) $ git reset --hard changed/i9ce/gitea-1.22.6-1.el9 HEAD is now at c96729f import gitea-1.22.6-1.el9