[giggle] Fixed bug of GUI not remembering settings
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] Fixed bug of GUI not remembering settings
- Date: Fri, 13 Nov 2015 13:32:53 +0000 (UTC)
commit 18c9fafc9437ee62ecf2572d93a63817ab05b9df
Author: Georgios Floros <gfloros openmailbox org>
Date: Thu Nov 12 22:24:48 2015 +0200
Fixed bug of GUI not remembering settings
Actually the command "git repo-config" is obsolete.
This patch replaces "git repo-config" with "git config".
libgiggle-git/giggle-git-config-read.c | 2 +-
libgiggle-git/giggle-git-config-write.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgiggle-git/giggle-git-config-read.c b/libgiggle-git/giggle-git-config-read.c
index 7b4fdb9..7f24e1d 100644
--- a/libgiggle-git/giggle-git-config-read.c
+++ b/libgiggle-git/giggle-git-config-read.c
@@ -120,7 +120,7 @@ static gboolean
git_config_read_get_command_line (GiggleJob *job,
gchar **command_line)
{
- *command_line = g_strdup_printf (GIT_COMMAND " repo-config --list");
+ *command_line = g_strdup_printf (GIT_COMMAND " config --list");
return TRUE;
}
diff --git a/libgiggle-git/giggle-git-config-write.c b/libgiggle-git/giggle-git-config-write.c
index e026e4f..7fd2b07 100644
--- a/libgiggle-git/giggle-git-config-write.c
+++ b/libgiggle-git/giggle-git-config-write.c
@@ -184,13 +184,13 @@ git_config_write_get_command_line (GiggleJob *job,
if (priv->value) {
value = g_shell_quote (priv->value);
- *command_line = g_strdup_printf (GIT_COMMAND " repo-config %s %s %s",
+ *command_line = g_strdup_printf (GIT_COMMAND " config %s %s %s",
priv->global ? "--global" : "",
priv->field, value);
g_free (value);
} else {
- *command_line = g_strdup_printf (GIT_COMMAND " repo-config %s --unset %s",
+ *command_line = g_strdup_printf (GIT_COMMAND " config %s --unset %s",
priv->global ? "--global" : "", priv->field);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]