git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: error: unable to create file: Illegal byte sequence

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 3, 2018, 09:01 UTC
Message-ID
<CACBZZX4qH-w3YevoaW8RXAoFrjpfGerLWpBhetrO2tV-FGr3cQ@mail.gmail.com>
In-Reply-To
<CAANr7CBNhkYJ=u8Bq-NG3KkSYY8yczJCt_25KcZU4VMFsS399A@mail.gmail.com>
On Sat, Feb 3, 2018 at 4:17 AM, Brian Buchalter <bal711@gmail.com> wrote:
Show 16 quoted lines
> I am attempting to repair a git repo which has an illegal byte
> sequence but am not sure how to proceed. Steps to reproduce: `git
> clone https://github.com/christopherpow/nes-test-roms.git` results in:
>
> ```
> Cloning into 'nes-test-roms'...
> remote: Counting objects: 1049, done.
> remote: Total 1049 (delta 0), reused 0 (delta 0), pack-reused 1049
> Receiving objects: 100% (1049/1049), 5.23 MiB | 8.97 MiB/s, done.
> Resolving deltas: 100% (406/406), done.
> error: unable to create file other/Duelito - L�eme.txt: Illegal byte sequence
> fatal: unable to checkout working tree
> warning: Clone succeeded, but checkout failed.
> You can inspect what was checked out with 'git status'
> and retry the checkout with 'git checkout -f HEAD'
> ```

You can clone my fork of this which fixes the issue: https://github.com/avar/nes-test-roms

As for fixing this yourself, if your FS can't represent files in the repo the easiest thing is to clone it on a VM with an OS that can (e.g. Linux), or alternatively (and harder for non-experts) is to clone it with --bare and manually create a fixed tree with the various plumbing commands mentioned in "man git".

Previous: Brian Buchalter
Message 2 of 2 in “error: unable to create file: Illegal byte sequence”
  1. Brian BuchalterFeb 3, 2018
  2. Ævar Arnfjörð BjarmasonFeb 3, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.