From: Robert Abel Date: Tue, 28 Nov 2017 20:18:17 GMT Subject: git-prompt: fix reading files with windows line endings Message-ID: <20171128201818.4132-1-rabel@robertabel.eu> I noticed today that my git prompt using msys-git on Windows got a bit broken. After investigating I found that the git-prompt doesn't handle the case when __git_eread reads Windows line endings \r\n. It will only strip \n, leaving the \r. I noticed this when I created a repository with msys-git, did some tasks and later wanted to check the bare. Apparently, another tool on my PC went wild and replaced all line endings in all text files it could find, breaking my git prompt.