Hi, i'd like to import a project from CVS. The cvs commits are done using Cp1252 encoding charset. The thing is i cannot change the .git/config file since the repo is created by git-cvsimport. So how can i use the good charset ?
threads / discuss / 17738
git-cvsimport and i18n.commitencoding
Subject: git-cvsimport and i18n.commitencoding
Re: git-cvsimport and i18n.commitencoding
Hi,
On Thu, 12 Feb 2009, Prenom Nom wrote:
> The thing is i cannot change the .git/config file since the repo is > created by git-cvsimport.
Indeed. A dirty little trick would be to edit $(git --exec-path)git-cvsimport and put in your desired changes.
A less ugly solution would be to patch git-cvsimport.perl to add an option --into-existing-repository that does not complain when the Git repository is already initialized, unless the 'origin' branch exists, too.
Hth, Dscho