Skip to content

Git LFS bugs with SSH authentication #2690

Closed
@Vuregu

Description

@Vuregu

I've noticed some odd behaviour upon trying out SSH authentication with Git LFS on Gitea.

  • Pushing
    You can push LFS files to the LFS server with just SSH authentication, although it will ask you for authentication the first time around, which you can cancel once or twice upon which it will continue to upload them successfully.
    Any subsequent pushes of LFS files will log "WARNING: Authentication error: Authorization required... Check that you have propoer access to the repository" but LFS will initialize and upload all of the files succesfully.
    I've verified that in both initial and subsequent pushes the LFS files do end up on the repository and are stored in the LFS cache.

  • Checking out
    Cloning/checking out a repository with LFS files using just SSH authentication does not come with any warnings, LFS starts to do its thing and files are being downloaded. However, after a dozen files or so finish downloading and checking out, authentication is asked for all of a sudden, and if you do not provide it, LFS halts further downloading. The first dozen files however do succesfully download and check out. This is very odd behaviour.

Because you can successfully push an entire repository with just SSH authentication over LFS, my initial verdict was that indeed LFS with SSH was supported on Gitea. But upon realizing that check outs do not complete, strangely they do however start to a certain extent, I must admit that SSH authentication is not supported by Gitea with Git LFS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions