# Qgit should use "git config" instead of "git repo-config"

1 messages from 2011-05-09 to 2011-05-09. Participants: Jonathan Rogers.
Thread: https://gitlist.dev/t/27311

## Jonathan Rogers, 2011-05-09 21:15

Subject: Qgit should use "git config" instead of "git repo-config"
Message-ID: <4DC8595C.30600@socialserve.com>
URL: https://gitlist.dev/e/4DC8595C.30600%40socialserve.com

```
Here's a small patch to cause qgit to use "git config" instead of "git 
repo-config" in a couple of places.

-- 
Jonathan Ross Rogers



diff --git a/src/git.cpp b/src/git.cpp
index 50e6dd3..8e9365c 100644
--- a/src/git.cpp
+++ b/src/git.cpp
@@ -427,7 +427,7 @@ void Git::setTextCodec(QTextCodec* tc) {
 	if (name == "Big5-HKSCS")
 		name = "Big5";
 
-	run("git repo-config i18n.commitencoding " + name);
+	run("git config i18n.commitencoding " + name);
 }
 
 QTextCodec* Git::getTextCodec(bool* isGitArchive) {
@@ -437,7 +437,7 @@ QTextCodec* Git::getTextCodec(bool* isGitArchive) {
 		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

```
