gitdiff: line 63: git file header: invalid mode line: invalid syntax
gitdiff: line 63: git file header: invalid mode line: invalid syntax: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). A Git file header mode line (for example new file mode 100644 ) may be terminated with a CRLF line ending, so the…
The task
A Git file header mode line (for example `new file mode 100644`) may be terminated with a CRLF line ending, so the line passed to the parser can end with a trailing carriage return. Such a mode line must be parsed successfully instead of being rejected as an invalid mode line.