[gnome-builder/gnome-builder-3-24] create-project: Pass versioning along to IdeProjectTemplate
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] create-project: Pass versioning along to IdeProjectTemplate
- Date: Wed, 22 Mar 2017 23:02:41 +0000 (UTC)
commit d115ff5da0dbff2110b13e9891226ef45df339f2
Author: Matthew Leeds <mleeds redhat com>
Date: Wed Mar 22 17:33:02 2017 -0500
create-project: Pass versioning along to IdeProjectTemplate
This commit passes the versioning option specified on the
command line along to the project template so it knows git
is enabled. Some of the templates have some behavior
that's conditional on whether git is enabled.
plugins/create-project/gbp-create-project-tool.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/create-project/gbp-create-project-tool.c
b/plugins/create-project/gbp-create-project-tool.c
index 3f96588..740eccc 100644
--- a/plugins/create-project/gbp-create-project-tool.c
+++ b/plugins/create-project/gbp-create-project-tool.c
@@ -414,6 +414,10 @@ gbp_create_project_tool_run_async (IdeApplicationTool *tool,
g_strdup ("language"),
g_variant_ref_sink (g_variant_new_string (self->language)));
+ g_hash_table_insert (params,
+ g_strdup ("versioning"),
+ g_variant_ref_sink (g_variant_new_string (self->vcs ?: "git")));
+
ide_project_template_expand_async (template,
params,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]