Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read references from 'Respository_name\.git': invalid utf-8 sequence of 1 bytes from index 24 #2296

Open
Ioannarcis14 opened this issue Aug 14, 2024 · 4 comments
Milestone

Comments

@Ioannarcis14
Copy link

Fork forced me to update to newer version, and now I can't open some projects, every time it opens this pop up with error:

Failed to read references from 'Respository_name.git': invalid utf-8 sequence of 1 bytes from index 24

image

@DanPristupov
Copy link
Contributor

DanPristupov commented Aug 14, 2024

Probably Fork can't read a branch with invalid utf8 sequence in the name. Can you check if you have any such references? In can be a remote branch with umlauts in cp1252 encoding.

Run git for-each-ref in the command line.

@Ioannarcis14
Copy link
Author

Thanks, I have almost a thousand branches...

To solve it I run this command grep -axv '.*' packed-refs which tells me on that file which line has a wrong character. Replacing those characters and saving did it for me.

@DanPristupov DanPristupov added this to the 2.0 milestone Aug 15, 2024
@DanPristupov
Copy link
Contributor

In the next update, Fork will learn to read branches with names in cp1252 encoding. Manipulations with them will not be impossible, but at least they will not crash the application.

@DanPristupov
Copy link
Contributor

We just released Fork 2.0 update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants