I had this code running in a Node.js codebase for awhile:
if (os.platform() === 'win32') {
stdout = fs.openSync('NUL', 'a');
it put a ghost file ('NUL') on my machine at the root of the project, and I can't git rm it or delete it permanently. Having this file around seems to make git very unreliable; commits don't seem to work completely.
Does anybody know what do with this?
The good news is: it won't mess up your Git no more.
Because, with Git 2.25 (Q1 2020), Git will forbid pathnames that the platform's filesystem cannot represent on MinGW.
See commit 4dc42c6, commit 98d9b23 (21 Dec 2019) by Johannes Schindelin (
dscho
).(Merged by Junio C Hamano --
gitster
-- in commit 13432fc, 02 Jan 2020)Git 2.27 (Q2 2020) fixes another issue with
COM0
.See commit 3efc128 (09 Apr 2020), and commit b6852e1 (08 Apr 2020) by Johannes Schindelin (
dscho
).See commit a748f3f (08 Apr 2020) by Matthias Aßhauer (
rimrul
).(Merged by Junio C Hamano --
gitster
-- in commit b3eb70e, 22 Apr 2020)