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 219684

Summary: IllegalArgumentException: /tmp/vcs-1349683618995/vcs-1349683639799 is not under /home/sro
Product: versioncontrol Reporter: Exceptions Reporter <exceptions_reporter>
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED DUPLICATE    
Severity: normal CC: git
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 193218
Attachments: stacktrace

Description Exceptions Reporter 2012-10-08 08:14:46 UTC
This bug was originally marked as duplicate of bug 218302, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

Stacktrace: 
java.lang.IllegalArgumentException: /tmp/vcs-1349683618995/vcs-1349683639799 is not under /home/sro
   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:130)
Comment 1 Exceptions Reporter 2012-10-08 08:14:52 UTC
Created attachment 125564 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-10-08 08:18:33 UTC
You probably have .git folder in your home dir (/home/sro). Why? What's the point of versioning all your home dir???

*** This bug has been marked as a duplicate of bug 219629 ***
Comment 3 theshad0w 2012-10-08 08:32:42 UTC
(In reply to comment #2)
> You probably have .git folder in your home dir (/home/sro). Why? What's the
> point of versioning all your home dir???
> 
> *** This bug has been marked as a duplicate of bug 219629 ***

Hello,

I checked, and there is no such folder in my home directory (I understand that versioning the whole folder would be a terrible idea). I don't encounter this problem in 7.2, so it's definitely something that's changed in 7.3 beta.
Comment 4 Ondrej Vrabec 2012-10-08 10:06:04 UTC
Could you then take a look and check also /tmp/vcs-1349683618995/vcs-1349683618995. Is there a ".git" folder there or in any of its ancestors (/tmp/vcs-1349683618995 or /tmp or /)?
Comment 5 theshad0w 2012-10-08 11:51:23 UTC
(In reply to comment #4)
> Could you then take a look and check also
> /tmp/vcs-1349683618995/vcs-1349683618995. Is there a ".git" folder there or in
> any of its ancestors (/tmp/vcs-1349683618995 or /tmp or /)?

Hi there,

You were right ! Somehow a ".git" folder was created in my "/" directory, with a single folder inside it.

After deleting this, it seems the error message doesn't appear anymore.

Thanks for your help !!!