pombreda / nbgit

Automatically exported from code.google.com/p/nbgit
0 stars 0 forks source link

Corrupt object exception: invalid mode 160000 #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
not sure. i just opened my git controlled project

What versions of NbGit, NetBeans and Java are you using?
On what operating system?
v0.2pre0 on vista, netbeans 6.5

Please provide any additional information below.

org.spearce.jgit.errors.CorruptObjectException: Object
ba9fb01a03b9093c2828a90ff4926a7d949aaa1d is corrupt: Invalid mode: 160000
    at org.spearce.jgit.lib.Tree.readTree(Tree.java:586)
    at org.spearce.jgit.lib.Tree.<init>(Tree.java:178)
    at org.spearce.jgit.lib.Repository.mapTree(Repository.java:452)
    at org.spearce.jgit.lib.Repository.mapTree(Repository.java:455)
    at org.spearce.jgit.lib.Repository.mapTree(Repository.java:437)
    at org.spearce.jgit.lib.IndexDiff.<init>(IndexDiff.java:62)
    at org.nbgit.util.GitCommand.getSingleStatus(GitCommand.java:629)
    at org.nbgit.StatusCache.createFileInformation(StatusCache.java:404)
    at org.nbgit.StatusCache.refresh(StatusCache.java:337)
    at org.nbgit.StatusCache.refresh(StatusCache.java:419)
    at org.nbgit.task.StatusTask.perform(StatusTask.java:102)
    at org.nbgit.ui.status.VersioningPanel$4.perform(VersioningPanel.java:406)
    at org.nbgit.GitProgressSupport.performIntern(GitProgressSupport.java:98)
    at org.nbgit.GitProgressSupport.run(GitProgressSupport.java:90)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Original issue reported on code.google.com by timabe...@gmail.com on 18 Feb 2009 at 5:22

GoogleCodeExporter commented 9 years ago
The mode 160000 is used for submodules/gitlinks so merging this
with issue 23 although they have different exception traces.

Original comment by jonas.fonseca on 9 Mar 2009 at 9:45

GoogleCodeExporter commented 9 years ago
Changed to instead block issue 38, concerned with support for submodules.

Original comment by jonas.fonseca on 10 Mar 2009 at 10:45

GoogleCodeExporter commented 9 years ago
Issue 46 has been merged into this issue.

Original comment by jonas.fonseca on 22 May 2009 at 11:08

GoogleCodeExporter commented 9 years ago

Original comment by jonas.fonseca on 22 May 2009 at 11:10

GoogleCodeExporter commented 9 years ago

Original comment by jonas.fonseca on 22 May 2009 at 11:11

GoogleCodeExporter commented 9 years ago
While real submodule support would be nice and dandy, right now ngbit does not 
work
at all for any repo with a mode 16000 commit anywhere in it, which is a shame.
Can some kind soul add a workaround to make the main project work work at least?
Seems like lower hanging fruit for me.

Original comment by bernho...@gmail.com on 10 Jun 2009 at 10:05

GoogleCodeExporter commented 9 years ago
Patches posted for JGit, which should avoid the error being reported.
Once integrated upstream, I will update the JGit jar file.

 - http://article.gmane.org/gmane.comp.version-control.git/125718

Original comment by jonas.fonseca on 12 Aug 2009 at 6:45

GoogleCodeExporter commented 9 years ago
JGit updated to v0.5.0-77-gff1dc31

Original comment by jonas.fonseca on 12 Aug 2009 at 9:11

GoogleCodeExporter commented 9 years ago
The fix has been released in nbgit-0.3.

Original comment by jonas.fonseca on 31 Aug 2009 at 1:26