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 218302

Summary: IllegalArgumentException: C:\Users\marcio.vinicius\AppData\Local\Temp\vcs-1347537855771\vcs-1347546924260 is not under C:\Program Files\NetBeans 7.2
Product: versioncontrol Reporter: marciovinicius55
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED WORKSFORME    
Severity: normal CC: git
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 188533
Attachments: stacktrace

Description marciovinicius55 2012-09-13 14:41:51 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) Client VM, 20.7-b02, Java(TM) SE Runtime Environment, 1.6.0_32-b05
OS: Windows 7

User Comments:
GUEST: I forget




Stacktrace: 
java.lang.IllegalArgumentException: C:\Users\marcio.vinicius\AppData\Local\Temp\vcs-1347537855771\vcs-1347546924260 is not under C:\Program Files\NetBeans 7.2
   at org.netbeans.libs.git.jgit.Utils.getRelativePath(Utils.java:163)
   at org.netbeans.libs.git.jgit.Utils.getRelativePath(Utils.java:158)
   at org.netbeans.libs.git.jgit.Utils.getRelativePath(Utils.java:144)
   at org.netbeans.libs.git.jgit.Utils.getRelativePaths(Utils.java:137)
   at org.netbeans.libs.git.jgit.Utils.getPathFilters(Utils.java:104)
   at org.netbeans.libs.git.jgit.commands.StatusCommand.run(StatusCommand.java:132)
Comment 1 marciovinicius55 2012-09-13 14:41:55 UTC
Created attachment 124319 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-09-13 15:31:51 UTC
There is something weird with your setup:
> java.lang.IllegalArgumentException: C:\Users\marcio.vinicius\AppData\Local\Temp\vcs-1347537855771\vcs-1347546924260 is not under C:\Program Files\NetBeans 7.2
means that the IDE thinks C:\Program Files\NetBeans 7.2 is a git repository root. Check if there's a ".git" folder somewhere in "C:\Program Files\NetBeans 7.2" or its parents, remove it and restart the IDE. Does it help?