Package: qgit
Severity: normal
Tags: patch

Hi,

with the latest upload of git package every time I start qgit I'm getting a 
message box with this
> An error occurred while executing command:
> git repo-config --get i18n.commitencoding
> Git says: 
> WARNING: git repo-config is deprecated in favor of git config.

I click ok, then utf8 non-ascii characters in commiters' names aren't properly 
displayed for me.

I'm attaching a trivial patch to solve this problem.
--- a/src/git.cpp
+++ b/src/git.cpp
@@ -425,7 +425,7 @@
 	if (name == "Big5-HKSCS")
 		name = "Big5";
 
-	run("git repo-config i18n.commitencoding " + name);
+	run("git config i18n.commitencoding " + name);
 }
 
 QTextCodec* Git::getTextCodec(bool* isGitArchive) {
@@ -435,7 +435,7 @@
 		return NULL;
 
 	QString runOutput;
-	if (!run("git repo-config --get i18n.commitencoding", &runOutput))
+	if (!run("git config --get i18n.commitencoding", &runOutput))
 		return NULL;
 
 	if (runOutput.isEmpty()) // git docs says default is utf-8

Reply via email to