lib/config, lib/ignore: Write Windows line endings (fixes #7115) (#8052)

This commit is contained in:
Jakob Borg
2021-11-22 09:38:24 +01:00
committed by GitHub
parent 4b750b6dc3
commit 1754c93370
6 changed files with 92 additions and 3 deletions
+2 -1
View File
@@ -595,8 +595,9 @@ func WriteIgnores(filesystem fs.Filesystem, path string, content []string) error
return err
}
wr := osutil.LineEndingsWriter(fd)
for _, line := range content {
fmt.Fprintln(fd, line)
fmt.Fprintln(wr, line)
}
if err := fd.Close(); err != nil {