GNOME Bugzilla – Bug 776556
flatpak: do not handle branches of the git source field correctly
Last modified: 2016-12-30 01:32:24 UTC
Created attachment 342557 [details] [review] flatpak: make sure to correctly parse revisions The branch field for git sources does support several types: "The branch/tag/commit to use from the git repository" (http://flatpak.org/flatpak/flatpak-docs.html#flatpak-builder). In the flatpak plugin we do use the branch specified in the manifest directly to set as a branch "ggit_clone_options_set_checkout_branch (clone_options, req->src->branch);" and that fails with "reference not found". The patch uses ggit_repository_revparse to identify the given branch field and does a hard reset to that revision.
Pushed as commit 59414846dda1e0a51ff1144fd508bea402448cc9