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

[Feature] LFS support for Migrate and Mirror #9939

Closed
6543 opened this issue Jan 22, 2020 · 4 comments
Closed

[Feature] LFS support for Migrate and Mirror #9939

6543 opened this issue Jan 22, 2020 · 4 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@6543
Copy link
Member

6543 commented Jan 22, 2020

as title

@techknowlogick techknowlogick added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jan 22, 2020
@6543 6543 mentioned this issue Sep 3, 2020
24 tasks
@6543
Copy link
Member Author

6543 commented Feb 14, 2021

# create a bare clone of the GitHub repository
git clone --bare git@github.com:repo_owner/repo_name.git
cd repo_name

# set up named remotes for Gitea and GitHub
git remote add gitea git@gitea.org:tpettersen/repo_name.git
git remote add github git@github.com:repo_owner/repo_name.git

# fetch all Git LFS content from GitHub
git lfs fetch --all github

# push all Git and Git LFS content to Gitea
git push --mirror gitea $ git lfs push --all gitea

@zeripath
Copy link
Contributor

this would require git lfs to be installed with gitea or that we implement a git lfs client (which potentially wouldn't be too difficult)

BTW we can't do:

# fetch all Git LFS content from GitHub
git lfs fetch --all github

# push all Git and Git LFS content to Gitea
git push --mirror gitea $ git lfs push --all gitea

we have to have the fetch deposit the assets directly into gitea's lfs store as soon as an LFS file is obtained.

@6543
Copy link
Member Author

6543 commented Feb 14, 2021

isnt git-lfs implemented in go?

I think we need a own client to store things into our lfs directly

@KN4CK3R
Copy link
Member

KN4CK3R commented Apr 29, 2021

This issue can be closed with #14726 and #15157 I guess?

@6543 6543 added this to the 1.15.0 milestone Apr 29, 2021
@6543 6543 closed this as completed Apr 29, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants