-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
-
2020 Week 13-15 (from Mar 23)
-
NEW
-
NEW
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:
fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository
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.