It is possible to define a folder that contains a post-commit hook that will be added to repositories every time they are created.
It can be done by using the property org.uberfire.nio.git.hooks.
Refer to this doc for more information.
However, this is also applicable to system repositories like system, dashbuilder, config and archetypes.
So, if users define a post-commit hook like "git push origin master" and run BC for the first time, they will see the following error on every commit in system repositories because they don't have an origin to refer to:
Thus, the purpose of this task is to filter out system repositories from this flow.
As a result, the post-commit hook will be added only to the user's project repositories.