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.
Initially I thought it doesn't work. But after a longer while (during writing bug report) it started to work so I want to report slightly different issue. After initializing git for non-empty directory, all files are marked as new but none of git options are active except of clone. After waiting a longer while, git options were activated without any user action. Also it is possible to bring it alive by restarting NB. How to reproduce: 1. Create php project from existing files (maybe number of files does matter - I have a lot) - I'm using separate project and sources directories (even different partitions), just FYI 2. Initialize git on this project 3. check context menu/Git or Team menu - git options are disabled (except of clone) 4. restart NB to get all GIT features available (or wait a while) Don't know if it is intentional/known issue. But it's quite surprising since there is no any indication what happens. Happened for a few projects I had to start with. with regards
one findings more: options are not activated after time. It happen when you call context menu on some file and look into git submenu. Then project-level git options turn on.
(In reply to comment #0) > - I'm using separate project and sources directories (even different > partitions), just FYI > 2. Initialize git on this project And where do you actually create the .git folder? If you have source files spread across different partitions and source directories, then where is the git folder located? Please describe the setup a bit and if you can, attach also nbproject/project.properties file
Git repo is created for source files (h:\!projects\html\project_name\) Project files are located in f:\_devel\NetBeans7_projects\project_name\) and are not maintained by any cvs
fix: http://hg.netbeans.org/core-main/rev/a2de2bfdd173
Integrated into 'main-golden', will be available in build *201212120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a2de2bfdd173 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #223523 - inactive git features after init - for a long while Cached VCSContext should be flushed when versioning owners change. Otherwise the context may contain invalid or at least inaccurate root files in case project consists of multiple source roots coming from different parts of file system.