Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sometimes bisect logs have CRLF newlines. (E.g., if they've been edited on a Windows machine and their LF-only nature wasn't preserved.) Previously, such log files would cause odd failures deep in the guts of git bisect, like "?? what are you talking about?" or "couldn't get the oid of the rev '...?'" (notice the trailing ?) as each line's CR ends up part of the final value read from the log. This commit fixes that by stripping CRs from the log before further processing. A regression test that fails without the git-bisect.sh change, "bisect replay with CRLF log" has been added as well. Were anyone to intentionally be using terms/revs with embedded CRs, replaying such bisects will no longer work with this change. I suspect that this is incredibly rare. Signed-off-by: Christopher Warrington <chwarr@microsoft.com>
- Loading branch information
dbdb691
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Search:Open
t/t6030-bisect-porcelain.sh