Re: Anyone know why git ls-remote output might be corrupted?
- From
Paul Smith <paul@mad-scientist.net>
- Date
- Jun 2, 2023, 19:12 UTC
- Message-ID
- <7aa2ab6714bd14671ba9cfff611dea2fa088c99e.camel@mad-scientist.net>
- In-Reply-To
- <b6f210da2c3cc7746b984b797ad89687cba2d1f8.camel@mad-scientist.net>
On Fri, 2023-06-02 at 14:59 -0400, Paul Smith wrote:
> Also a bunch of the heads are missing. It's pretty clear that right > in the middle of printing one of the SHAs we suddenly lost a bunch of > output, and started printing stuff from later (in the last instance > 66 out of 131 heads were missing).
I forgot to mention: git ls-remote does not exit with an error code. The exit code is 0 (success).
The reason I get this failure is that as I parse the output I notice that the SHA is invalid (contains a non-hex character "i") and it throws this error.