Re: [PATCH v2 2/3] credentials: make line reading Windows compatible
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 29, 2020, 00:54 UTC
- Message-ID
- <xmqqsgb1ier6.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200929004448.GD898702@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> Yeah, that is probably what would happen. I have to admit that it's such > an obscure case that I'm not sure I really care. It's unlikely in > practice, and if somebody did report such a case, I think my first > response would be "well, why did you have a broken entry stuck in your > file?".
I think we know the likely answer. "I once used Windows to edit the file manually".
After which the file looks broken, so the user may have re-added via the credential API (with LF line ending) a new entry for the host and have been happily using the result.