Command-line tests
It would be helpful to be able to test this program from the command line. However, the scant documentation makes this a challenge.
Presumably, the git command-line client with the Git LFS extension invokes git-lfs-transfer with the path from lfs.url stored in .lfsconfig. So, if a git user types the following from the top-level directory of a git repo:
$ git config -f .lfsconfig lfs.url ssh://mslinn@gojira/mnt/_/work/git/eval_bare_repo
Then .lfsconfig will have at least the following:
[lfs]
url = ssh://mslinn@gojira/mnt/_/work/git/eval_bare_repo
... which (I think) means the Git command-line client will issue a command something like the following when fetching an LFS file:
ssh mslinn@gojira git-lfs-transfer /mnt/_/work/git/eval_bare_repo download
When I type the above incantation, the response is:
000eversion=1
000clocking
0000
And then the program appears to pause, awaiting input.
I would like to test upload and download. Is this possible? If so, how?
I am attempting to document two variations of this scenario: a bare git repo on a server, without a git server and without a Git LFS server.
- via ssh - the reason for this issue
- via samba / local protocol (file: URI schema) - you aren't concerned with this
Later I will move on to documenting the other scenarios, all of which involve a git server, and most of which involve a Git LFS server.
It would be helpful to be able to test this program from the command line. However, the scant documentation makes this a challenge.
Presumably, the git command-line client with the Git LFS extension invokes
git-lfs-transferwith the path fromlfs.urlstored in.lfsconfig. So, if a git user types the following from the top-level directory of a git repo:$ git config -f .lfsconfig lfs.url ssh://mslinn@gojira/mnt/_/work/git/eval_bare_repoThen
.lfsconfigwill have at least the following:[lfs] url = ssh://mslinn@gojira/mnt/_/work/git/eval_bare_repo... which (I think) means the Git command-line client will issue a command something like the following when
fetching an LFS file:ssh mslinn@gojira git-lfs-transfer /mnt/_/work/git/eval_bare_repo downloadWhen I type the above incantation, the response is:
000eversion=1 000clocking 0000And then the program appears to pause, awaiting input.
I would like to test upload and download. Is this possible? If so, how?
I am attempting to document two variations of this scenario: a bare git repo on a server, without a git server and without a Git LFS server.
- via ssh - the reason for this issue
- via samba / local protocol (file: URI schema) - you aren't concerned with this
Later I will move on to documenting the other scenarios, all of which involve a git server, and most of which involve a Git LFS server.
@Dustin4444, the above comment is just a copy of the original post, unedited and without anything added. Did you intend to say something?