summaryrefslogtreecommitdiff
path: root/builder
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-28 21:52:45 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-28 21:52:45 +0100
commit3a70dcf430e1ddf2b67b8f615e12edc1c8050f41 (patch)
tree6f43ae44e488bb22dea07a561c8e7fb746e9c224 /builder
parent7defd88667766054679308c033835e8701585639 (diff)
downloadxdg-app-3a70dcf430e1ddf2b67b8f615e12edc1c8050f41.tar.gz
builder: Style fixes
Diffstat (limited to 'builder')
-rw-r--r--builder/builder-source-git.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/builder/builder-source-git.c b/builder/builder-source-git.c
index 84a8179..ebde0ec 100644
--- a/builder/builder-source-git.c
+++ b/builder/builder-source-git.c
@@ -423,17 +423,18 @@ git_extract_submodule (const char *repo_url,
continue;
words = g_strsplit (lines[i] + 1, " ", 3);
- // Skip any submodules that are disabled (have the update method set to "none")
- // Only check if the command succeeds. If it fails, the update method is not set.
- option = g_strdup_printf("submodule.%s.update", words[1]);
- if (git(checkout_dir, &update_method, NULL,
- "config", "-f", ".gitmodules", option, NULL)) {
- /* Trim trailing whitespace */
- g_strchomp(update_method);
-
- if (g_strcmp0(update_method, "none") == 0)
- continue;
- }
+ /* Skip any submodules that are disabled (have the update method set to "none")
+ Only check if the command succeeds. If it fails, the update method is not set. */
+ option = g_strdup_printf ("submodule.%s.update", words[1]);
+ if (git (checkout_dir, &update_method, NULL,
+ "config", "-f", ".gitmodules", option, NULL))
+ {
+ /* Trim trailing whitespace */
+ g_strchomp (update_method);
+
+ if (g_strcmp0 (update_method, "none") == 0)
+ continue;
+ }
option = g_strdup_printf ("submodule.%s.url", words[1]);
if (!git (checkout_dir, &child_relative_url, error,