GNOME Bugzilla – Bug 772837
ggit_repository_discover() not resolving inside of flatpak
Last modified: 2019-02-22 03:52:00 UTC
I'm not sure what is causing this, but I noticed in Builder that it wasn't loading the git backend inside the flatpak app. It might be something like needing to set the 'traverse filesystems' bit for git_repository_discover(). I ended up adding workaround for Builder to do manual discovery, but if we figure out why this is happening, I can drop that code.
Sounds like a flatpak issue then.
I don't think this is a flatpak issue. It is perfectly reasonable to have multiple filesystems mounted in a mount namespace. (sshfs for example). But libgit2-glib does not expose the flags parameter that git_repository_discover() hsa in libgit2 (which we need here). We could add a ggit_repository_discover_full() or something that wraps/exposes the libgit2 flags.
I see, I misunderstood the issue.
commit 0a66454cc2fc2333bbe41772e8508e617ac6a91b Author: Jesse van den Kieboom <jessevdk@gnome.org> Date: Sun Nov 6 01:50:44 2016 -0800 Add ggit_repository_discover_full https://bugzilla.gnome.org/show_bug.cgi?id=772837