Skip to content

git2go: Pass feature flags into gitaly-git2go binary

John Cai requested to merge jc-propagate-ff-to-git2go into master

git2go: Pass feature flags into gitaly-git2go binary

Currently when we call gitaly-git2go, we lose feature flags since they are in the context inside the request that comes from Rails. In order to allow gitaly-git2go to benefit from feature flags, we can pass it in through an environment variable much like we do for gitaly-hooks.

In order to test this, add a new subcommand for gitaly-git2go that simply returns which feature flags are set in the context. Since we only gets built for tests, build this in only with the test build tag.

Changelog: changed

Merge request reports