gitlabhq/gitlabhq — Issue #50: Encoding Errors on Imported Repositories
Author: DejaAugustine
Created: 2011-10-21 04:06:45+00:00
State: open

If I create a project and initialize a fresh, clean repository, everything works great. However, if I create a project and push in an existing, heavily developed local repository, I am encountering the following error when I try to view the commit history:

```Encoding::CompatibilityError in Commits#index

Showing /var/dev/gitlabhq/app/views/layouts/application.html.haml where line #30 raised:

incompatible character encodings: UTF-8 and ASCII-8BIT```

If I take the same local repository codebase, delete the .git folder and do a fresh init before pushing it to GitLabHQ, everything works fine.

I'm assuming the issue has to do with the fact that this particular repo has been worked on across several OSs and individual machines, and it's quite possible that different commits have different encodings.

I want to be able to use GitLabHQ for a number of projects, but many of them have extensive commit histories and I can't really afford to clean-slate it.

Has anyone encountered this before or have any advice? Is there any way to standardize the encoding on an existing repository?