Working with LFS repositries
See original GitHub issueHi there,
Can copybara operate with repositories with files managed by Git LFS? My scenario is as follows:
- I have a private repository on github that has many artifacts (some of which are large files which are managed by LFS). This repository acts as a source repository.
- I also have another private repository on github which acts as the target repository.
- The source repository gets frequent pushes, and from time to time we need to selectively copy certain files from it to the target repository.
- when using copybara to do so, we get an error message during the task: “Git Destination: Checking out master”:
Error downloading object: (...): batch request: missing protocol: ""
Errors logged to (...)
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: (...): smudge filter lfs failed
which seems as a problem with relevant to git-lfs.
So does copybara support repositories with LFS-managed files?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9
Top Results From Across the Web
Git LFS - large file storage | Atlassian Git Tutorial
Git LFS is a Git extension that improves handling of large files by lazily downloading the needed versions during checkout, rather than during...
Read more >Configuring Git Large File Storage - GitHub Docs
Once Git LFS is installed, you need to associate it with a large file in your repository. ... If there are existing files...
Read more >Why and How to Use Git LFS - DZone
Navigate to your Git repository (where the .git directory is located) and execute the following command in order to activate Git LFS: $...
Read more >Git Large File Storage (LFS) - GitLab Docs
How it works ... Git LFS client communicates with the GitLab server over HTTPS. It uses HTTP Basic Authentication to authorize client requests....
Read more >Handling Large Files with LFS | Learn Version Control with Git
Working with large binary files can be quite a hassle: they bloat your local repository and leave you with Gigabytes of data on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So as a workaround I found out that if the
.gitconfig
file does not include the following section:Then copybara handles lfs repositories just fine.
To help future readers: newer versions of
git-lfs
(e.g. when installingubuntu:20.04
docker image) will setup system-wide Git LFS configuration in/etc/gitconfig
for you, making Copybara error out when working with Git LFS enabled repos. Simplest workaround seems to be just deleting the file.