[gnome-builder/wip/gtk4-port: 1166/1774] plugins/git: fix g_warning() from loading project without git
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1166/1774] plugins/git: fix g_warning() from loading project without git
- Date: Mon, 11 Jul 2022 22:31:37 +0000 (UTC)
commit 4d4801b558448feb09e8392eb6602776966aa348
Author: Christian Hergert <chergert redhat com>
Date: Wed May 25 19:24:36 2022 -0700
plugins/git: fix g_warning() from loading project without git
src/plugins/git/gbp-git-workbench-addin.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/git/gbp-git-workbench-addin.c b/src/plugins/git/gbp-git-workbench-addin.c
index 0dbca9731..a64177895 100644
--- a/src/plugins/git/gbp-git-workbench-addin.c
+++ b/src/plugins/git/gbp-git-workbench-addin.c
@@ -112,8 +112,8 @@ gbp_git_workbench_addin_load_project_discover_cb (GObject *object,
if (!ipc_git_service_call_discover_finish (service, &git_location, result, &error))
{
- g_dbus_error_strip_remote_error (error);
- ide_task_return_error (task, g_steal_pointer (&error));
+ g_debug ("Not a git repository: %s", error->message);
+ ide_task_return_unsupported_error (task);
return;
}
@@ -239,7 +239,7 @@ workbench_addin_iface_init (IdeWorkbenchAddinInterface *iface)
}
G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGitWorkbenchAddin, gbp_git_workbench_addin, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (IDE_TYPE_WORKBENCH_ADDIN, workbench_addin_iface_init))
+ G_IMPLEMENT_INTERFACE (IDE_TYPE_WORKBENCH_ADDIN, workbench_addin_iface_init))
static void
gbp_git_workbench_addin_class_init (GbpGitWorkbenchAddinClass *klass)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]