This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262618 - org.netbeans.libs.git.GitException: Git repository does not exist at /home/projects/sandbox/lab/htmlView/migViewSample
Summary: org.netbeans.libs.git.GitException: Git repository does not exist at /home/pr...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 15:54 UTC by aplatypus
Modified: 2016-07-01 20:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213158


Attachments
stacktrace (845 bytes, text/plain)
2016-06-29 15:54 UTC, aplatypus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2016-06-29 15:54:50 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Linux

User Comments:
kprovance: dunno, nothing?

aplatypus: git folder, ".git" was deleted 

  rm -R .git/

GUEST: open a with git and non-git managed foders

aplatypus: not sure

GUEST: using project with githib 
had just  PULLed in braches master & 2 others
master branch showing in bottom status

tried to CHECKOUT another branch 

----

I am unable to ake netbeans checkout to another repo which it has references to on remote & also as local

aplatypus: editing Java code




Stacktrace: 
org.netbeans.libs.git.GitException: Git repository does not exist at /home/projects/sandbox/lab/htmlView/migViewSample
   at org.netbeans.libs.git.jgit.commands.GitCommand.prepareCommand(GitCommand.java:106)
   at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:73)
   at org.netbeans.libs.git.GitClient.getBranches(GitClient.java:675)
   at de.markiewb.netbeans.plugin.git.showbranch.GitUtils.getActiveBranch(GitUtils.java:44)
   at de.markiewb.netbeans.plugin.git.showbranch.Installer$2.run(Installer.java:61)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
Comment 1 aplatypus 2016-06-29 15:54:53 UTC
Created attachment 160193 [details]
stacktrace
Comment 2 Ondrej Vrabec 2016-06-30 08:31:34 UTC
Benno, you probably log the exception with SEVERE or WARNING, it should be reported to user in a more user-friendly way as the scenario may happen from time to time.
Comment 4 markiewb 2016-07-01 20:20:23 UTC
(In reply to markiewb from comment #3)
> Filed as https://github.com/markiewb/nb-git-branch-in-statusbar/issues/6

Fixed. Wait for the verification of the plugin 1.0.3 at the plugin portal or download the plugin at https://github.com/markiewb/nb-git-branch-in-statusbar/releases/tag/v1.0.3