gitlab-mirrors icon indicating copy to clipboard operation
gitlab-mirrors copied to clipboard

lfs objects are not mirrored

Open agonycoder opened this issue 8 years ago • 6 comments

I believe it wouldn't be very hard to add this although gitlab mirror seems to have a long discussion about it as well. Maybe the 90% success simplistic case would suffice?

agonycoder avatar Jan 11 '17 16:01 agonycoder

Can you elaborate on how one would mirror git lfs? I'm not to familiar with it. PRs are also welcome.

samrocketman avatar Jan 11 '17 23:01 samrocketman

Also, I have no idea what the 90% success simplistic case is referencing.

samrocketman avatar Feb 02 '17 07:02 samrocketman

@samrocketman I think 90% success simplistic case means a simple solutions will make 90% happy and the complicated solution to get that last 10%.

nicholas-itpedia avatar Feb 09 '17 08:02 nicholas-itpedia

@nicholas-itpedia I don't use git lfs and don't know what the "90% case" is technically (i.e. what commands are the 90% case?). If you have links to how others are mirroring git lfs objects I would be happy to take a look.

For instance @agonycoder mentions GitLab has a long discussion about it. Could I have a link to that discussion for reading?

samrocketman avatar Feb 10 '17 00:02 samrocketman

this link may help.

https://help.github.com/enterprise/2.8/user/articles/duplicating-a-repository/#mirroring-a-repository-that-contains-git-large-file-storage-objects

wangzw avatar Mar 19 '17 10:03 wangzw

I stumbled accross this issue while trying out gitlab-mirrors.

I implemented a quick and dirty attempt at using Git LFS in the provided scripts (see https://github.com/wrightsg/gitlab-mirrors/tree/git-lfs-support) based on the instructions in the link provided by @wangzw

I have tested initial mirrorring using the add_mirror.sh script and updating using the git-mirrors.sh script.

I am not really a Git LFS expert and these changes most likely to not cover all cases. Maybe someone with more experience can weigh in.

wrightsg avatar Jan 18 '21 16:01 wrightsg