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 268820

Summary: Update of .gitignore uses incorrect EOLs
Product: versioncontrol Reporter: terje7601
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: normal CC: git
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: reproducer

Description terje7601 2016-11-04 08:02:51 UTC
Created attachment 162768 [details]
reproducer

The attached project is a minimal git-versioned web project without anything NetBeans-specific. Upon opening it, Netbeans adds the "nbproject" folder and updates the .gitignore file. However, while doing the latter, it uses Windows EOLs instead of Unix EOLs.

In case it matters, in my global .gitconfig file, core.autocrlf is set to false.

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)