with latest git, one have the WARNING: git repo-config is deprecated in favor of git config
every time we open qgit
This patch fixes it (don't have a attach-file button somehow):
Use 'git config' instead of the deprecated 'git repo-config'"
--- src/git.cpp 2011-11-28 18:19:18.303878315 +0100 +++ src/git.cpp 2010-11-28 18:21:56.948876532 +0100 @@ -425,7 +425,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) { @@ -435,7 +435,7 @@ QTextCodec* Git::getTextCodec(bool* isGi 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
Ups, there is a patch already in the Patches tracker. Forget about this one here.
There is a new version released at http://libre.tibirna.org (see http://libre.tibirna.org/news/1\) that contains a fix for this.
Log in to post a comment.
This patch fixes it (don't have a attach-file button somehow):
Use 'git config' instead of the deprecated 'git repo-config'"
--- src/git.cpp 2011-11-28 18:19:18.303878315 +0100
+++ src/git.cpp 2010-11-28 18:21:56.948876532 +0100
@@ -425,7 +425,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) {
@@ -435,7 +435,7 @@ QTextCodec* Git::getTextCodec(bool* isGi
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
Ups, there is a patch already in the Patches tracker. Forget about this one here.
There is a new version released at http://libre.tibirna.org (see http://libre.tibirna.org/news/1\) that contains a fix for this.