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.
I have the following folder setup: /webroot <-- Contains a git repo /webroot/site1 <-- Contains a git repo and where the project was setup When I open up the project all the files show as ignored because it's using the /webroot git folder and not the one from /webroot/site1. Ideally it should only use the git information from where the project was first created (in this case /webroot/site1). Git functionality seems to work fine in the project though.
I don't know if mine is the same problem or a different one. Netbeans doesn't recognize git repositories outside the project folder. Example: (It DOESN'T works!) 1) I right click on the project 2) I go to versioning 3) I click on "Initialize Git repository" 4) I SELECT A DIFFERENT DIRECTORY FOR MY REPOSITORY (EX. C:\ProjectsRepo) 5) (PROBLEM) The repository is correctly initialized in C:\ProjectsRepo but IT IS NOT VIEWED AND USED BY NETBEANS FOR MY PROJECT (It works) Follows the steps till 3 4) I select the standard directory for the repo (Inside my project folder) 5) The repository is correctly initialized and it is used correctly by netbeans to work with my project.
> 4) I SELECT A DIFFERENT DIRECTORY FOR MY REPOSITORY (EX. C:\ProjectsRepo) > 5) (PROBLEM) The repository is correctly initialized in C:\ProjectsRepo but IT > IS NOT VIEWED AND USED BY NETBEANS FOR MY PROJECT Is your project stored under "C:\ProjectsRepo" or somewhere else?
(In reply to Ondrej Vrabec from comment #2) > > 4) I SELECT A DIFFERENT DIRECTORY FOR MY REPOSITORY (EX. C:\ProjectsRepo) > > 5) (PROBLEM) The repository is correctly initialized in C:\ProjectsRepo but IT > > IS NOT VIEWED AND USED BY NETBEANS FOR MY PROJECT > Is your project stored under "C:\ProjectsRepo" or somewhere else? It should be stored somewhere else. The same problem occurred when I tried a similar setup. In my case I put the project folder on the hard disk, while I tried to initialize the repository on a flash drive. The repository was initialized correctly, but NetBeans could not detect it.