$ git clone -n http://git.inferitos.ru/rpms/libssh2 /var/lib/mock/inferit-10_0-extras-build-84873-156177/root/chroot_tmpdir/scmroot/libssh2 Cloning into '/var/lib/mock/inferit-10_0-extras-build-84873-156177/root/chroot_tmpdir/scmroot/libssh2'... $ git fetch origin changed/i10ce/libssh2-1.11.0-8.el10:KOJI_FETCH_HEAD error: cannot update ref 'refs/heads/KOJI_FETCH_HEAD': trying to write non-commit object ee3cd2f9da02373b449cc1d82e683ccf395b2be5 to branch 'refs/heads/KOJI_FETCH_HEAD' From http://git.inferitos.ru/rpms/libssh2 ! [new tag] changed/i10ce/libssh2-1.11.0-8.el10 -> KOJI_FETCH_HEAD (unable to update local ref) $ git reset --hard changed/i10ce/libssh2-1.11.0-8.el10 HEAD is now at 39924b9 import libssh2-1.11.0-8.el10