Repository navigation
Fixed
git push through git-remote-overleaf no longer drops or corrupts files (#59)
The fast-export parser counted data <N> blocks as latin1 bytes while Git counts UTF-8 bytes. Any file with non-ASCII characters, such as accented letters, typographic quotes or CJK comments, left the parser short of the announced length, so it swallowed the following lines as file content. Files after it were silently skipped, deletions were missed, and the content that did arrive was mangled, while the push still reported success.
Binary files such as images and PDFs now push byte for byte. The remote helper read the stream with readline, which decodes every payload as text and cannot give the original bytes back, so a pushed PNG or PDF arrived at the right size but corrupted. Commands are now read as lines and data <N> payloads as exactly N raw bytes, which also removes the text-decoding problem above at its root. Quoted paths, which Git emits for names with spaces or non-ASCII characters, are now unquoted before upload.
git pull and git fetch were not affected. Overleaf itself normalizes CRLF line endings in text files to LF.