Skip to content

tq: send refspec with batch requests#2774

Closed
technoweenie wants to merge 6 commits intomasterfrom
batch-send-refspec
Closed

tq: send refspec with batch requests#2774
technoweenie wants to merge 6 commits intomasterfrom
batch-send-refspec

Conversation

@technoweenie
Copy link
Contributor

Implements #2712 for Batch API calls.

There is a problem here though. Currently, Transfer Queues and Git Scanners are scoped for a single remote. The updated newUploadQueue() builds a new Transfer Queue with the current remote ref.

That's fine, except the pre-push hook is called with the correct remote ref, and it supports multiple refs.

echo "refs/heads/master master refs/heads/tracked 0000000000000000000000000000000000000000" \
 | git lfs pre-push origin master

This should be calling objects/batch at least once for each ref. I made some changes to commands/uploader.go to initialize a new Transfer Queue and Git Scanner, but ran into a deadlock issue deep in the Git Scanner.

@git-lfs git-lfs deleted a comment Dec 11, 2017
@git-lfs git-lfs deleted a comment Dec 11, 2017
@git-lfs git-lfs deleted a comment Dec 11, 2017
@ttaylorr
Copy link
Contributor

❄️ per #2712 (comment).

@technoweenie
Copy link
Contributor Author

Closing this due to conflicts. See #2806.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants