Skip to content

Encoding error when cloning the repo #14364

@kaycebasques

Description

@kaycebasques

Describe the bug

An encoding error occurs when cloning the main repo. Based on the filename I can tell that it's intentional. The wrongly encoded file is part of a test. Nonetheless it trips me up every time I clone the repro, and I have to remember every time that the wrong encoding is intentional. Ideally, git clone results in clean output, but the wrong encoding test remains.

How to Reproduce

Repro

git clone git@github.com:sphinx-doc/sphinx.git

Expected

A clean clone.

Actual

Cloning into 'sphinx'...
remote: Enumerating objects: 180621, done.
remote: Counting objects: 100% (350/350), done.
remote: Compressing objects: 100% (180/180), done.
remote: Total 180621 (delta 250), reused 172 (delta 169), pack-reused 180271 (from 4)
Receiving objects: 100% (180621/180621), 105.01 MiB | 16.65 MiB/s, done.
Resolving deltas: 100% (133051/133051), done.
error: failed to encode 'tests/roots/test-root/wrongenc.inc' from UTF-8 to iso-8859
error: failed to encode 'tests/roots/test-warnings/wrongenc.inc' from UTF-8 to iso-8859
Updating files: 100% (2058/2058), done.

Environment Information

HEAD commit is cc7c6f435ad37bb12264f8118c8461b230e6830c

Sphinx extensions

N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions