Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] java.io.IOException: Read error at (FS.java:289)

Hi,

 

A read error is thrown every time I do a Git clone with a few lines of code like this.

 

CloneCommand cc = Git.cloneRepository();

                            

                             cc.setURI(url.toString());

                             cc.setDirectory(directory);

                             cc.setBranch("refs/heads/"+branch);

                             cc.setBare(false);

                             cc.setCloneAllBranches(false);

                             Git git = null;

                             git = cc.call();

 

java.io.IOException: Read error

          at java.io.FileDescriptor.read(FileDescriptor.java:83)

          at java.io.FileInputStream.read(FileInputStream.java:177)

          at org.eclipse.jgit.util.FS$2.run(FS.java:289)

 

How do I deal with this?

 

-prathibha


Back to the top