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

Question: is it possible to clone a lfs repo with subrepo? #518

Closed
johnneren opened this issue Feb 3, 2021 · 1 comment
Closed

Question: is it possible to clone a lfs repo with subrepo? #518

johnneren opened this issue Feb 3, 2021 · 1 comment

Comments

@johnneren
Copy link

johnneren commented Feb 3, 2021

Hi.

I would like to use subrepo to manage dependencies for a project which requires 3 remote repositories which are all running with lfs.

But does this work with subrepo? because i cannot get it to work.

As a demo i tried creating a test repository in devops with something like this:

git init external_repo
cd external_repo
git lfs install
git lfs track *.exe
<add working exe file>
git commit everything
git tag v1.0
git push origin -all
git push origin tag

Then I created another test repository locally with:

git init main_repo
cd main_repo
git lfs install
git lfs track *.exe
git commit .gitattribute

If I do a git clone <https remote devops url> external_repo_clone -b v1.0 I get the tag cloned to the external_repo_clone folder and everything works. LFS does a fetch of the exe file.

If I do a git subrepo clone <https remote devops url> external_repo_subrepo -b v1.0 the LFS fetch fails on:
Error downloading object: external_repo_subrepo/Tool.exe (c905c52): Smudge error: Error downloading external_repo_subrepo/Tool.exe (c905c529cc2bc7918dbb6e4c63dbec4c52d9e8abdb22988221f24fddea4875e8): batch request: missing protocol: ""

Does subrepo not support clone of lfs or am I missing something?

Tested with version 0.4.3 and a 0.4.2-LFS (a open pull request I decided to try out)

Any feedback would be appreciated :)

@admorgan
Copy link
Collaborator

admorgan commented Feb 4, 2021

See #152

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

No branches or pull requests

2 participants