Skip to contentSkip to conversation

git-cvsimport and i18n.commitencoding

DISCUSSION Prenom Nom 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Prenom Nom

author
#0 lore raw

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 ?

#1 lore raw

Hi,

Quoted 2 lines · Prenom Nom

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