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.
Git support creates unwanted '.gitignore' file. Why is it unwanted? Because I use .git/info/exclude file to ignore files (I'm using Git for Subversion repository, that's why I don't use .gitignore file directly as in other projects). P2 because it creates files in my projects that I dont' want, don't need and moreover I need to remove them manually. Sorry. (Please, do not advice me to ignore file .gitignore as well, thanks ;) Thanks a lot. Product Version: NetBeans IDE Dev (Build 110124-10b9ce73d2ac) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03 System: Linux version 2.6.35-24-generic running on amd64; UTF-8; cs_CZ (nb)
You can disable this option in Tools > Misc > Versioning > Git. Unselect 'Permanently ignore not-sharable files'. I hope the option is enough for you, let us know if it works correctly and the ignore file is not created with the option disabled.
Aha, thanks a lot, yes, that helped. BTW for ignored files, NetBeans should check also .git/info/exclude file, right? If not, why not? In any case, lowering to P3, thanks.
Your .git/info/exclude already marks /build, /dist etc. as ignored?
(In reply to comment #3) > Your .git/info/exclude already marks /build, /dist etc. as ignored? Yes, the only difference I have noticed is that in my exclude file there is "/target" but in the generated .gitignore file there was "/target/" (with ending slash). I have generated my exclude files using this command: git svn show-ignore >> .git/info/exclude
fix: #69ceb559b63a - http://hg.netbeans.org/core-main/rev/9f561b286f7e
I hope the fix will help. Now we check also .git/info/exclude before adding a statement to a .gitignore file, so you should not experience the described behavior any more. > the only difference I have noticed is that in my exclude file there is "/target" AFAIK, your statement will ignore also *file* "/target" meanwhile ours ignores only *folder* "/target" and is more accurate.
First of all, thanks a lot for superfast fix! (In reply to comment #6) > I hope the fix will help. Now we check also .git/info/exclude before adding a > statement to a .gitignore file, so you should not experience the described > behavior any more. I will check it once I get the updated module. > AFAIK, your statement will ignore also *file* "/target" meanwhile ours ignores > only *folder* "/target" and is more accurate. Yes, you are right, of course. But as I wrote, I use (external) command for it (so I simply don't care).
Integrated into 'main-golden', will be available in build *201101250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9f561b286f7e User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #194650 - For ignored files, .git/info/exclude file should be checked as well
Verified. Thanks a lot! Product Version: NetBeans IDE Dev (Build 110125-74d55d16425e) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03 System: Linux version 2.6.35-24-generic running on amd64; UTF-8; cs_CZ (nb)