Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pure SSH LFS support #31516

Merged
merged 9 commits into from
Sep 27, 2024
Merged

Add pure SSH LFS support #31516

merged 9 commits into from
Sep 27, 2024

Commits on Sep 17, 2024

  1. routers/private: fix push-on-create being incorrectly triggered

    The code here checks if the repo being requested doesn't exist.
    If it doesn't, then a write operation might create it. But a read
    operation doesn't make any sense, and should error out. So simply
    check the access mode.
    
    I assume this was the intent here, but only checked for one "verb"
    instead, while there exist other read-only verbs as well. And ofc
    more can be introduced in the future ;)
    
    Possibly some write verbs don't make sense as well (presumably
    those that only add stuff incrementally to existing repos)?
    ConcurrentCrab committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    a179b31 View commit details
    Browse the repository at this point in the history
  2. cmd: extract getLFSAuthToken() into function

    this makes no functional changes
    ConcurrentCrab committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f79825c View commit details
    Browse the repository at this point in the history
  3. cmd: refactor runServ()

    Coalesce access mode detection into one place.
    Yes, "upload" really has opposite semantics for
    git commands vs. git-lfs commands. Wow.
    
    This commit makes no functional changes.
    ConcurrentCrab committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    6444a7c View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. modules/lfstransfer: add a backend and runner

    Also add handler in runServ()
    
    Doesn't add support for the locking API yet
    ConcurrentCrab committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    bc7ae76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f819027 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    5009913 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    165bf9a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1e8502f View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    4af6417 View commit details
    Browse the repository at this point in the history