Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Clone LFS exception(LFS)
Clone LFS exception [message #1838319] Mon, 22 February 2021 10:33
Menahem Bris is currently offline Menahem BrisFriend
Messages: 1
Registered: February 2021
Junior Member
I'm trying to clone repository included LFS files using JGit but I got this exception: org.eclipse.jgit.api.errors.FilterFailedException: Execution of filter command 'git-lfs smudge -- 'file'' on file 'file' failed with return code '2', message on stderr: 'Downloading 'file' (5.2 MB)

my code is:
FileRepositoryBuilder builder = new FileRepositoryBuilder();
Repository repository = builder.setGitDir(directory).readEnvironment().findGitDir().build();
CloneCommand clone = Git.cloneRepository();
clone.setProgressMonitor(new TextProgressMonitor(new PrintWriter(System.out)));
clone.setTransportConfigCallback(transport -> transport.setTimeout(300));
clone.setCredentialsProvider(new UsernamePasswordCredentialsProvider("user", "password"));;

Am I missing something?

Thanks in advance.
Previous Topic:How to protect master branch in github?
Next Topic:integrated git console for EGit
Goto Forum:

Current Time: Wed Feb 01 10:50:43 GMT 2023

Powered by FUDForum. Page generated in 0.02477 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top