summaryrefslogtreecommitdiff
path: root/community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-14 22:59:43 +0000
committerroot <root@rshg047.dnsready.net>2011-06-14 22:59:43 +0000
commitba3afb3907fc927bd08713613d4a30a9479c715c (patch)
tree1f1353c475b7709a692e3d42a8ac9c2e0e8ad02a /community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch
parent7c64c5039335c73eaa1a402c417235e8ca9a5109 (diff)
Tue Jun 14 22:59:43 UTC 2011
Diffstat (limited to 'community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch')
-rw-r--r--community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch b/community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch
new file mode 100644
index 000000000..a0c7e6c4d
--- /dev/null
+++ b/community/qgit/0001-Cause-qgit-to-use-git-config-everywhere.patch
@@ -0,0 +1,39 @@
+From 50b7344bc2cc941a43b3adfaebdc96dd1935e747 Mon Sep 17 00:00:00 2001
+From: Jonathan Ross Rogers <jrogers@socialserve.com>
+Date: Mon, 9 May 2011 18:16:29 -0400
+Subject: [PATCH] Cause qgit to use "git config" everywhere.
+
+Whenever starting up qgit, it pops up a dialog showing that git
+complained about the obsolete command "repo-config". This patch
+replaces remaining calls to "git repo-config" with "git config".
+
+Signed-off-by: Jonathan Ross Rogers <jrogers@socialserve.com>
+---
+ src/git.cpp | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+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
+--
+1.7.5
+