summaryrefslogtreecommitdiff
path: root/builder/builder-source-git.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-12-09 14:07:33 +0100
committerAlexander Larsson <alexl@redhat.com>2015-12-09 14:07:33 +0100
commitdfc11d5e87440b3b658d8014a154bfccfb0100d7 (patch)
treea05388b991c97d7a5388430567c39d8fadcad003 /builder/builder-source-git.c
parent6a82dd4ee33c0929216c37971c0b92558f667c84 (diff)
downloadxdg-app-dfc11d5e87440b3b658d8014a154bfccfb0100d7.tar.gz
builder: Support specifying commit ids as git branches
Diffstat (limited to 'builder/builder-source-git.c')
-rw-r--r--builder/builder-source-git.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/builder/builder-source-git.c b/builder/builder-source-git.c
index 1934aae..37cc217 100644
--- a/builder/builder-source-git.c
+++ b/builder/builder-source-git.c
@@ -476,7 +476,11 @@ builder_source_git_extract (BuilderSource *source,
dest_path = g_file_get_path (dest);
if (!git (NULL, NULL, error,
- "clone", "--branch", get_branch (self), mirror_dir_path, dest_path, NULL))
+ "clone", mirror_dir_path, dest_path, NULL))
+ return FALSE;
+
+ if (!git (dest, NULL, error,
+ "checkout", get_branch (self), NULL))
return FALSE;
if (!git_extract_submodule (url, dest, context, error))