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

LFS Support #80

Open
deepchainde opened this issue Feb 28, 2020 · 5 comments
Open

LFS Support #80

deepchainde opened this issue Feb 28, 2020 · 5 comments

Comments

@deepchainde
Copy link

Hi, thanks for the awesome plugin. We just tried it and works like a charm.

One problem we noticed however is that the LFS objects are not mirrored. We cannot find any info in the Document. Is LFS supported or just our configuration problem?

@adrianluisgonzalez
Copy link
Member

Hmm, I'm not sure what it would take to get LFS working. Are you saying the LFS pointer files aren't being mirrored? Possibly they are not included in the default ref spec. Can you provide a simple repo with an LFS file?

@deepchainde
Copy link
Author

The pointers have been replicated, but the binary files are not mirrored to the destination git server. Therefore, when we try to clone/checkout from the destination git server, we get error like "404 object not found".

Really appreciate your comments.

@deepchainde
Copy link
Author

Hmm, I'm not sure what it would take to get LFS working. Are you saying the LFS pointer files aren't being mirrored? Possibly they are not included in the default ref spec. Can you provide a simple repo with an LFS file?

Would really appreciate if you can give us some hints if this kind of LFS mirror is supported in the plugin.

@patrick-compass
Copy link

I was wondering why my commits weren't even mirroring. The push is failing due to the LFS messages returning exit code 1.

@changwoo
Copy link

changwoo commented Jun 7, 2021

Only repos with lfs binaries failed to be mirrored. I think referenced git-lfs binaries were not fetched at the source repo.

If the bitbucket git repos are bare repos with no lfs binaries, then pushing will fail with an error like this:

$ git clone --bare <URL> repo
$ cd repo
$ git remote add otherrepo <URL2>
$ git push --mirror otherrepo
Unable to find source for object <HASH> (try running git lfs fetch --all)                                                                    
error: failed to push some refs to '<REPO>'

I'm not sure how to fix. mirroring will succeed after "git lfs fetch"ing the binaries. but fetching the files on the bare repos on the server will duplicate the binaries and increase the disk usage often seriously.

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

No branches or pull requests

4 participants