Hi,
I installed the somewhat unofficial version from
http://blogs.sun.com/tor/entry/nbgit_for_netbeans_6_9 (the one in the
comments).
It has an issue with showing a diff for a branch created from a
remote.

Something like
git clone [email protected]:...
git checkout -b mybranch

Now the diff doesnt work, it says

java.lang.NullPointerException
        at org.spearce.jgit.lib.GitIndex$Entry.<init>(GitIndex.java:418)
        at org.spearce.jgit.lib.GitIndex.readTree(GitIndex.java:798)
        at org.spearce.jgit.lib.GitIndex.readTree(GitIndex.java:796)
        at org.spearce.jgit.lib.GitIndex.readTree(GitIndex.java:796)
        at org.spearce.jgit.lib.GitIndex.readTree(GitIndex.java:783)
        at org.nbgit.client.CheckoutBuilder.checkout(CheckoutBuilder.java:
163)
        at org.nbgit.util.GitUtils.getFileRevision(GitUtils.java:622)
        at org.nbgit.ui.diff.DiffStreamSource.init(DiffStreamSource.java:217)
Caused: java.io.IOException: Can not load remote file for /path/to/
file/bs.js
        at org.nbgit.ui.diff.DiffStreamSource.init(DiffStreamSource.java:245)
        at org.nbgit.ui.diff.Setup.initSources(Setup.java:261)
        at org.nbgit.ui.diff.MultiDiffPanel
$DiffPrepareTask.run(MultiDiffPanel.java:616)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:
1418)
[catch] at org.openide.util.RequestProcessor
$Processor.run(RequestProcessor.java:1957)

When working on a repository without remotes, it works.

With the official 0.3 plugin for NB6.8 this works for both cases.

Do you also see this behavior?

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"nbgit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nbgit?hl=en.

Reply via email to