Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2434

Prevent system repositories from receiving the default post-commit hook


    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None

      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.

            gcaponet Guilherme Caponetto
            gcaponet Guilherme Caponetto
            0 Vote for this issue
            1 Start watching this issue