Skip to content

Commit 5e5e1c1

Browse files
Fix codespell: rename test ref to avoid 'caf' typo detection
1 parent 963604b commit 5e5e1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_refs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ def test_packed_refs_with_non_utf8_encoding(self, rw_repo):
653653
# Add a fake ref with Latin-1 encoded name (ñ = 0xF1 in Latin-1, invalid UTF-8)
654654
# Using a valid SHA from the repo
655655
head_sha = rw_repo.head.commit.hexsha
656-
non_utf8_line = f"\n{head_sha} refs/tags/caf\xf1\n".encode("latin-1")
656+
non_utf8_line = f"\n{head_sha} refs/tags/test-\xf1ame\n".encode("latin-1")
657657

658658
with open(packed_refs_path, "wb") as f:
659659
f.write(content + non_utf8_line)

0 commit comments

Comments
 (0)