Skip to content

Fix Git LFS SSH issues#13743

Merged
xokdvium merged 1 commit intoNixOS:masterfrom
kip93:fix/lfs-ssh
Aug 13, 2025
Merged

Fix Git LFS SSH issues#13743
xokdvium merged 1 commit intoNixOS:masterfrom
kip93:fix/lfs-ssh

Conversation

@kip93
Copy link
Contributor

@kip93 kip93 commented Aug 13, 2025

Motivation

Context

Fixes some outstanding issues with Git LFS and SSH. (See #13337 and the FIXME in the old code)

For the tests, I had to change to clone from Gitea rather than pure SSH so that we can test fetching LFS files from an SSH server.

Also, renamed the gitea_admin to gitea_user in the tests since that user is not really an admin and it threw me for a loop until I realized why I was having issues with some of the Gitea API endpoints.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@kip93 kip93 requested a review from edolstra as a code owner August 13, 2025 14:50
@github-actions github-actions bot added fetching Networking with the outside (non-Nix) world, input locking documentation labels Aug 13, 2025
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! I took a stab at it myself, but gitea defeated me. This is looking great already, but I do have some minor nitpicks and questions.

@kip93 kip93 requested a review from Ericson2314 as a code owner August 13, 2025 16:02
* Adds support for NIX_SSHOPTS
* Properly uses the parsed port from URL (fixes NixOS#13337)
* Don't guess the HTTP endpoint, use the response of git-lfs-authenticate
* Add an SSH Git LFS test
* Removed some unused test code
Copy link
Contributor

@xokdvium xokdvium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kip93, thanks! LGTM. I've squashed and did some minor cleanup. Hope that's fine with you.

@xokdvium xokdvium merged commit 8e5ca78 into NixOS:master Aug 13, 2025
14 checks passed
@kip93 kip93 deleted the fix/lfs-ssh branch August 14, 2025 16:20
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-2-31-0-released/68465/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

git lfs inputs don't work when ssh is not listening on the default port

3 participants