You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On checkout git-lfs process execute git-lfs-authenticate for each downloading file #2018
I use Git v2.12.0 and Git LFS v2.0.0.
In this configuration filter-process used for git-lfs intergration (single git-lfs for one git command).
In this case git-lfs can store git-lfs-authenticate result in process state before it expired. But git-lfs run git-lfs-authenticate for every downloading file. On Windows this command taked too long time even on local environment (~0.8 sec in my case).
It looks like it's happening on each batch, not each file. For some reason, your batch size is 1 though. Are you scanning multiple refs with just 1 object? By default, LFS has a batch size of 100 objects. But it will send the remainder when the transfer queue is shut down. The transfer queue should emit a trace message like "tq: running as batched queue, batch size of 100", which should tell you its batch size.
Here's an example trace from git lfs fetch --all on a small repository:
@bozaro on these fetch, pull, or clone operations where new objects are being downloaded in a batch size of one, you can use the Git LFS wrapped variants of those commands to work around having to re-authorize each time.
@ttaylorr
Using special command for any git operation is bad idea (also I don't see git lfs reset).
Git LFS killer feature: it don't require additional commands and can be used with any git tool out of box.
In this case, the problem is caused by an unsuccessful batch upload implementation.
There are no technical prerequisites or API requirements, due to which you need to call git-lfs-authenticate on each batch.
Activity
technoweenie commentedon Mar 9, 2017
It looks like it's happening on each batch, not each file. For some reason, your batch size is 1 though. Are you scanning multiple refs with just 1 object? By default, LFS has a batch size of 100 objects. But it will send the remainder when the transfer queue is shut down. The transfer queue should emit a trace message like "tq: running as batched queue, batch size of 100", which should tell you its batch size.
Here's an example trace from
git lfs fetch --allon a small repository:bozaro commentedon Mar 9, 2017
As I understand, filter-process process files one-by-one. So
git checkout/git reset --hardand other commands always use batch with 1 object.technoweenie commentedon Mar 9, 2017
Ah yeah, we're waiting on some updates to the filter process stuff in git so it'll let us queue up multiple downloads. Here's an old POC: #1646.
bozaro commentedon Mar 10, 2017
I think this is unrelated issues.
Ideally, client need to request authorization after 401-response from the server.
ttaylorr commentedon Mar 10, 2017
@bozaro on these
fetch,pull, orcloneoperations where new objects are being downloaded in a batch size of one, you can use the Git LFS wrapped variants of those commands to work around having to re-authorize each time.bozaro commentedon Mar 13, 2017
@ttaylorr
Using special command for any git operation is bad idea (also I don't see
git lfs reset).Git LFS killer feature: it don't require additional commands and can be used with any git tool out of box.
In this case, the problem is caused by an unsuccessful batch upload implementation.
There are no technical prerequisites or API requirements, due to which you need to call
git-lfs-authenticateon each batch.bozaro commentedon Mar 17, 2017
I try to fix this issue and create PR #2045